Changeset 28780 for trunk/themes/default/js/ui/jquery.ui.accordion.js
- Timestamp:
- Jun 24, 2014, 10:16:59 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/themes/default/js/ui/jquery.ui.accordion.js
r20824 r28780 1 1 /*! 2 * jQuery UI Accordion 1.10. 12 * jQuery UI Accordion 1.10.4 3 3 * http://jqueryui.com 4 4 * 5 * Copyright 201 3jQuery Foundation and other contributors5 * Copyright 2014 jQuery Foundation and other contributors 6 6 * Released under the MIT license. 7 7 * http://jquery.org/license … … 25 25 26 26 $.widget( "ui.accordion", { 27 version: "1.10. 1",27 version: "1.10.4", 28 28 options: { 29 29 active: 0, … … 103 103 .removeClass( "ui-accordion-header ui-accordion-header-active ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top" ) 104 104 .removeAttr( "role" ) 105 .removeAttr( "aria-expanded" ) 105 106 .removeAttr( "aria-selected" ) 106 107 .removeAttr( "aria-controls" ) … … 117 118 .css( "display", "" ) 118 119 .removeAttr( "role" ) 119 .removeAttr( "aria-expanded" )120 120 .removeAttr( "aria-hidden" ) 121 121 .removeAttr( "aria-labelledby" ) … … 168 168 169 169 _keydown: function( event ) { 170 /*jshint maxcomplexity:15*/171 170 if ( event.altKey || event.ctrlKey ) { 172 171 return; … … 222 221 this.active = $(); 223 222 // active false only when collapsible is true 224 } if ( options.active === false ) {223 } else if ( options.active === false ) { 225 224 this._activate( 0 ); 226 225 // was active, but active panel is gone … … 295 294 .attr({ 296 295 "aria-selected": "false", 296 "aria-expanded": "false", 297 297 tabIndex: -1 298 298 }) 299 299 .next() 300 300 .attr({ 301 "aria-expanded": "false",302 301 "aria-hidden": "true" 303 302 }) … … 310 309 this.active.attr({ 311 310 "aria-selected": "true", 311 "aria-expanded": "true", 312 312 tabIndex: 0 313 313 }) 314 314 .next() 315 315 .attr({ 316 "aria-expanded": "true",317 316 "aria-hidden": "false" 318 317 }); … … 469 468 470 469 toHide.attr({ 471 "aria-expanded": "false",472 470 "aria-hidden": "true" 473 471 }); … … 477 475 // if we're collapsing, then keep the collapsing header in the tab order 478 476 if ( toShow.length && toHide.length ) { 479 toHide.prev().attr( "tabIndex", -1 ); 477 toHide.prev().attr({ 478 "tabIndex": -1, 479 "aria-expanded": "false" 480 }); 480 481 } else if ( toShow.length ) { 481 482 this.headers.filter(function() { … … 486 487 487 488 toShow 488 .attr({ 489 "aria-expanded": "true", 490 "aria-hidden": "false" 491 }) 489 .attr( "aria-hidden", "false" ) 492 490 .prev() 493 491 .attr({ 494 492 "aria-selected": "true", 495 tabIndex: 0 493 tabIndex: 0, 494 "aria-expanded": "true" 496 495 }); 497 496 }, … … 565 564 toHide.parent()[0].className = toHide.parent()[0].className; 566 565 } 567 568 566 this._trigger( "activate", null, data ); 569 567 }
Note: See TracChangeset
for help on using the changeset viewer.