diff --git src/bp-notifications/bp-notifications-template.php src/bp-notifications/bp-notifications-template.php
index 1caf8a1..02b0f9f 100644
|
|
function bp_notifications_sort_order_form() { |
1057 | 1057 | */ |
1058 | 1058 | function bp_notifications_bulk_management_dropdown() { |
1059 | 1059 | ?> |
| 1060 | <label class="bp-screen-reader-text" for="notification-select"><?php _e( 'Bulk Actions', 'buddypress' ); ?></label> |
1060 | 1061 | <select name="notification_bulk_action" id="notification-select"> |
1061 | 1062 | <option value="" selected="selected"><?php _e( 'Bulk Actions', 'buddypress' ); ?></option> |
1062 | 1063 | |
diff --git src/bp-templates/bp-legacy/buddypress/members/single/notifications/notifications-loop.php src/bp-templates/bp-legacy/buddypress/members/single/notifications/notifications-loop.php
index 7647d7d..90e4d52 100644
|
|
|
3 | 3 | <thead> |
4 | 4 | <tr> |
5 | 5 | <th class="icon"></th> |
6 | | <th><label for="select-all-notifications"><?php _e( 'Select all', 'buddypress' ); ?></label><input id="select-all-notifications" type="checkbox"></th> |
| 6 | <th><label class="bp-screen-reader-text" for="select-all-notifications"><?php _e( 'Select all', 'buddypress' ); ?></label><input id="select-all-notifications" type="checkbox"></th> |
7 | 7 | <th class="title"><?php _e( 'Notification', 'buddypress' ); ?></th> |
8 | 8 | <th class="date"><?php _e( 'Date Received', 'buddypress' ); ?></th> |
9 | 9 | <th class="actions"><?php _e( 'Actions', 'buddypress' ); ?></th> |
diff --git src/bp-templates/bp-legacy/css/buddypress.css src/bp-templates/bp-legacy/css/buddypress.css
index 539da68..8674926 100644
|
|
body.activity-permalink #buddypress div.activity-comments div.acomment-content { |
731 | 731 | #buddypress .standard-form #blog-details-section { |
732 | 732 | clear: left; |
733 | 733 | } |
734 | | #buddypress label[for="select-all-notifications"] { |
735 | | display: none; |
736 | | } |
737 | 734 | #buddypress #notifications-bulk-management { |
738 | 735 | clear: left; |
739 | 736 | } |
diff --git src/bp-templates/bp-legacy/js/buddypress.js src/bp-templates/bp-legacy/js/buddypress.js
index 3cf551b..0ace000 100644
|
|
jq(document).ready( function() { |
1538 | 1538 | } |
1539 | 1539 | }); |
1540 | 1540 | |
| 1541 | /* Make sure a 'Bulk Action' is choosed before submiting the form */ |
| 1542 | jq('#notifications-bulk-management').on('submit', function(){ |
| 1543 | if ( jq(this).find('#notification-select').val() === '' ) { |
| 1544 | return false; |
| 1545 | } |
| 1546 | }); |
| 1547 | |
1541 | 1548 | /* Close site wide notices in the sidebar */ |
1542 | 1549 | jq('#close-notice').on( 'click', function() { |
1543 | 1550 | jq(this).addClass('loading'); |