Skip to:
Content

BuddyPress.org

Ticket #5513: bulk_notifications_management.5.diff

File bulk_notifications_management.5.diff, 3.9 KB (added by lakrisgubben, 10 years ago)
  • src/bp-notifications/bp-notifications-template.php

    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() { 
    10571057 */
    10581058function bp_notifications_bulk_management_dropdown() {
    10591059        ?>
     1060        <label class="bp-screen-reader-text" for="notification-select"><?php _e( 'Select Bulk Actions', 'buddypress' ); ?></label>
    10601061        <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>
    10621063
    10631064                <?php if ( bp_is_current_action( 'unread' ) ) : ?>
    10641065                        <option value="read"><?php _e( 'Mark read', 'buddypress' ); ?></option>
  • src/bp-templates/bp-legacy/buddypress/members/single/notifications/notifications-loop.php

    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
     
    33                <thead>
    44                        <tr>
    55                                <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>
    77                                <th class="title"><?php _e( 'Notification', 'buddypress' ); ?></th>
    88                                <th class="date"><?php _e( 'Date Received', 'buddypress' ); ?></th>
    99                                <th class="actions"><?php _e( 'Actions',    'buddypress' ); ?></th>
  • src/bp-templates/bp-legacy/css/buddypress.css

    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 { 
    731731#buddypress .standard-form #blog-details-section {
    732732        clear: left;
    733733}
    734 #buddypress label[for="select-all-notifications"] {
    735         display: none;
    736 }
    737734#buddypress #notifications-bulk-management {
    738735        clear: left;
    739736}
    a.bp-title-button { 
    871868#buddypress input[type="submit"].disabled,
    872869#buddypress input[type="button"].disabled,
    873870#buddypress input[type="reset"].disabled,
     871#buddypress input[type="submit"][disabled=disabled],
    874872#buddypress button.pending,
    875873#buddypress button.disabled,
    876874#buddypress div.pending a,
    a.bp-title-button { 
    885883#buddypress input[type="submit"]:hover.disabled,
    886884#buddypress input[type="button"]:hover.disabled,
    887885#buddypress input[type="reset"]:hover.disabled,
     886#buddypress input[type="submit"][disabled=disabled]:hover,
    888887#buddypress button.pending:hover,
    889888#buddypress button.disabled:hover,
    890889#buddypress div.pending a:hover,
  • src/bp-templates/bp-legacy/js/buddypress.js

    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() { 
    15381538                }
    15391539        });
    15401540
     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
    15411550        /* Close site wide notices in the sidebar */
    15421551        jq('#close-notice').on( 'click', function() {
    15431552                jq(this).addClass('loading');