|
60 | 60 | var button = (this.button = $('<button type="button"><span class="ui-icon ui-icon-triangle-1-s"></span></button>'))
|
61 | 61 | .addClass('ui-multiselect ui-widget ui-state-default ui-corner-all')
|
62 | 62 | .addClass(o.classes)
|
63 |
| - .attr({ 'title':el.attr('title'), 'aria-haspopup':true, 'tabIndex':el.attr('tabIndex') }) |
| 63 | + .attr({ 'title':el.attr('title'), 'tabIndex':el.attr('tabIndex') }) |
| 64 | + .prop('aria-haspopup', true) |
64 | 65 | .insertAfter(el),
|
65 | 66 |
|
66 | 67 | buttonlabel = (this.buttonlabel = $('<span />'))
|
|
251 | 252 | return value;
|
252 | 253 | },
|
253 | 254 |
|
254 |
| - // this exists as a separate method so that the developer |
| 255 | + // this exists as a separate method so that the developer |
255 | 256 | // can easily override it.
|
256 | 257 | _setButtonValue: function(value) {
|
257 | 258 | this.buttonlabel.text(value);
|
|
388 | 389 | $this.focus();
|
389 | 390 |
|
390 | 391 | // toggle aria state
|
391 |
| - $this.attr('aria-selected', checked); |
| 392 | + $this.prop('aria-selected', checked); |
392 | 393 |
|
393 | 394 | // change state on the original option tags
|
394 | 395 | tags.each(function() {
|
|
534 | 535 | },
|
535 | 536 |
|
536 | 537 | _toggleDisabled: function(flag) {
|
537 |
| - this.button.attr({ 'disabled':flag, 'aria-disabled':flag })[ flag ? 'addClass' : 'removeClass' ]('ui-state-disabled'); |
| 538 | + this.button.prop({ 'disabled':flag, 'aria-disabled':flag })[ flag ? 'addClass' : 'removeClass' ]('ui-state-disabled'); |
538 | 539 |
|
539 | 540 | var inputs = this.menu.find('input');
|
540 | 541 | var key = "ech-multiselect-disabled";
|
|
550 | 551 | }
|
551 | 552 |
|
552 | 553 | inputs
|
553 |
| - .attr({ 'disabled':flag, 'arial-disabled':flag }) |
| 554 | + .prop({ 'disabled':flag, 'arial-disabled':flag }) |
554 | 555 | .parent()[ flag ? 'addClass' : 'removeClass' ]('ui-state-disabled');
|
555 | 556 |
|
556 |
| - this.element.attr({ |
| 557 | + this.element.prop({ |
557 | 558 | 'disabled':flag,
|
558 | 559 | 'aria-disabled':flag
|
559 | 560 | });
|
|
655 | 656 | getChecked: function() {
|
656 | 657 | return this.menu.find('input').filter(':checked');
|
657 | 658 | },
|
658 |
| - |
| 659 | + |
659 | 660 | getUnchecked: function() {
|
660 |
| - return this.menu.find('input').not(':checked'); |
| 661 | + return this.menu.find('input').not(':checked'); |
661 | 662 | },
|
662 | 663 |
|
663 | 664 | destroy: function() {
|
|
0 commit comments