diff --git src/bp-notifications/bp-notifications-template.php src/bp-notifications/bp-notifications-template.php
index 1caf8a1..92ba8ba 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 | 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..293fe67 100644
|
|
|
body.activity-permalink #buddypress div.activity-comments div.acomment-content { |
| 728 | 728 | #buddypress .standard-form #profile-details-section { |
| 729 | 729 | float: right; |
| 730 | 730 | } |
| 731 | | #buddypress .standard-form #blog-details-section { |
| 732 | | clear: left; |
| 733 | | } |
| 734 | | #buddypress label[for="select-all-notifications"] { |
| 735 | | display: none; |
| 736 | | } |
| | 731 | #buddypress .standard-form #blog-details-section, |
| 737 | 732 | #buddypress #notifications-bulk-management { |
| 738 | 733 | clear: left; |
| 739 | 734 | } |
| | 735 | body.no-js #buddypress #notifications-bulk-management #select-all-notifications, |
| | 736 | body.no-js #buddypress label[for="message-type-select"], |
| | 737 | body.no-js #buddypress #message-type-select, |
| | 738 | body.no-js #buddypress #delete_inbox_messages, |
| | 739 | body.no-js #buddypress #delete_sentbox_messages, |
| 740 | 740 | body.no-js #buddypress #notifications-bulk-management #select-all-notifications { |
| 741 | 741 | display: none; |
| 742 | 742 | } |
| … |
… |
a.bp-title-button { |
| 827 | 827 | #buddypress .wp-editor-wrap input[type=reset] { |
| 828 | 828 | padding: 0 10px 1px; |
| 829 | 829 | } |
| | 830 | |
| | 831 | /* Form classes & generic attr styling */ |
| | 832 | #buddypress form *[disabled="disabled"]{ |
| | 833 | cursor: default; |
| | 834 | opacity: .4; |
| | 835 | } |
| | 836 | .bp-screen-reader-text { |
| | 837 | clip: rect(1px, 1px, 1px, 1px); |
| | 838 | position: absolute; |
| | 839 | } |
| | 840 | |
| 830 | 841 | /*-------------------------------------------------------------- |
| 831 | 842 | 3.6 - Ajax Loading |
| 832 | 843 | --------------------------------------------------------------*/ |
| … |
… |
a.bp-title-button { |
| 871 | 882 | #buddypress input[type="submit"].disabled, |
| 872 | 883 | #buddypress input[type="button"].disabled, |
| 873 | 884 | #buddypress input[type="reset"].disabled, |
| | 885 | #buddypress input[type="submit"][disabled=disabled], |
| 874 | 886 | #buddypress button.pending, |
| 875 | 887 | #buddypress button.disabled, |
| 876 | 888 | #buddypress div.pending a, |
| … |
… |
a.bp-title-button { |
| 885 | 897 | #buddypress input[type="submit"]:hover.disabled, |
| 886 | 898 | #buddypress input[type="button"]:hover.disabled, |
| 887 | 899 | #buddypress input[type="reset"]:hover.disabled, |
| | 900 | #buddypress input[type="submit"][disabled=disabled]:hover, |
| | 901 | #buddypress form input[type=submit][disabled="disabled"]:focus, |
| 888 | 902 | #buddypress button.pending:hover, |
| 889 | 903 | #buddypress button.disabled:hover, |
| 890 | 904 | #buddypress div.pending a:hover, |
| 891 | 905 | #buddypress a.disabled:hover { |
| 892 | 906 | border-color: #eee; |
| 893 | | color: #bbb; |
| | 907 | color: #bbb; |
| 894 | 908 | } |
| 895 | 909 | |
| 896 | 910 | /*-------------------------------------------------------------- |
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'); |