diff --git src/bp-notifications/bp-notifications-template.php src/bp-notifications/bp-notifications-template.php
index 1caf8a1..2e19ad6 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( 'Select Bulk Actions', 'buddypress' ); ?></label> |
1060 | 1061 | <select name="notification_bulk_action" id="notification-select"> |
1061 | | <option value="" selected="selected"><?php _e( 'Bulk Actions', 'buddypress' ); ?></option> |
| 1062 | <option value="" selected="selected"><?php _e( 'Select Bulk Actions', 'buddypress' ); ?></option> |
1062 | 1063 | |
1063 | 1064 | <?php if ( bp_is_current_action( 'unread' ) ) : ?> |
1064 | 1065 | <option value="read"><?php _e( 'Mark read', 'buddypress' ); ?></option> |
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..d002848 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 | } |
… |
… |
a.bp-title-button { |
871 | 868 | #buddypress input[type="submit"].disabled, |
872 | 869 | #buddypress input[type="button"].disabled, |
873 | 870 | #buddypress input[type="reset"].disabled, |
| 871 | #buddypress input[type="submit"][disabled=disabled], |
874 | 872 | #buddypress button.pending, |
875 | 873 | #buddypress button.disabled, |
876 | 874 | #buddypress div.pending a, |
… |
… |
a.bp-title-button { |
885 | 883 | #buddypress input[type="submit"]:hover.disabled, |
886 | 884 | #buddypress input[type="button"]:hover.disabled, |
887 | 885 | #buddypress input[type="reset"]:hover.disabled, |
| 886 | #buddypress input[type="submit"][disabled=disabled]:hover, |
888 | 887 | #buddypress button.pending:hover, |
889 | 888 | #buddypress button.disabled:hover, |
890 | 889 | #buddypress div.pending a:hover, |
diff --git src/bp-templates/bp-legacy/js/buddypress.js src/bp-templates/bp-legacy/js/buddypress.js
index 3cf551b..b8822c5 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('#notification-bulk-manage').attr('disabled', 'disabled'); |
| 1543 | |
| 1544 | |
| 1545 | /* Remove the disabled attribute from the form submit button when bulk action has a value */ |
| 1546 | jq('#notification-select').on('change', function(){ |
| 1547 | jq('#notification-bulk-manage').attr('disabled', jq(this).val().length <= 0); |
| 1548 | }); |
| 1549 | |
1541 | 1550 | /* Close site wide notices in the sidebar */ |
1542 | 1551 | jq('#close-notice').on( 'click', function() { |
1543 | 1552 | jq(this).addClass('loading'); |