Changes between Initial Version and Version 1 of Ticket #5960, comment 2


Ignore:
Timestamp:
Jan 11, 2011, 6:12:06 AM (11 years ago)
Author:
nachoab
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #5960, comment 2

    initial v1  
    22
    33By the way, that workaround isn't working for me.
     4
     5[EDIT]
     6
     7Ok, now it works, although there is a mistake, it should be:
     8
     9        if(!self.element[0].checked) {
     10          $( this ).removeClass( "ui-state-active" );
     11          self.buttonElement.attr( "aria-pressed", false );
     12          self.element[0].checked = false;         
     13        }  else {
     14          $( this ).addClass( "ui-state-active" );
     15          self.buttonElement.attr('aria-pressed', true);
     16          self.element[0].checked = true;
     17        }
     18
     19its not the best but at least you won't have an active button without the active button effect.