[buddypress-trac] [BuddyPress Trac] #5513: Bulk Notifications Management

buddypress-trac noreply at wordpress.org
Wed Nov 12 19:07:11 UTC 2014


#5513: Bulk Notifications Management
---------------------------+---------------------------
 Reporter:  colabsadmin    |       Owner:  boonebgorges
     Type:  enhancement    |      Status:  reopened
 Priority:  normal         |   Milestone:  2.2
Component:  Notifications  |     Version:  2.0
 Severity:  normal         |  Resolution:
 Keywords:  needs-patch    |
---------------------------+---------------------------

Comment (by hnla):

 so just to be even more annoying I might do this:
 {{{

         /* Make sure a 'Bulk Action' is choosed before submiting the form
 */
         jq('#notification-bulk-manage').attr('disabled',
 'disabled').attr('title', 'Please select a bulk action');

         /* Remove the disabled attribute from the form submit button when
 bulk action has a value */
         jq('#notification-select').on('change', function(){
                 if ( jq(this).val() !== '' ) {
                         jq('#notification-bulk-
 manage').removeAttr('disabled');
                         jq('#notification-bulk-manage').attr('title',
 'Submit bulk action');
                 }else {
                         jq('#notification-bulk-manage').attr('disabled',
 'disabled');
                         jq('#notification-bulk-manage').attr('title',
 'Please select a bulk action');
                 }
         });
 }}}

 and have added a ruleset to style buddypress form elements that have attr
 'disabled' for cursor 'not-allowed', and opacity: .5; just to make it
 clear the submit is disabled.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5513#comment:28>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list