Ignore:
Timestamp:
Jun 24, 2014, 10:16:59 PM (10 years ago)
Author:
rvelices
Message:

upgrade jquery ui from 1.10.1 to 1.10.4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/themes/default/js/ui/jquery.ui.accordion.js

    r20824 r28780  
    11/*!
    2  * jQuery UI Accordion 1.10.1
     2 * jQuery UI Accordion 1.10.4
    33 * http://jqueryui.com
    44 *
    5  * Copyright 2013 jQuery Foundation and other contributors
     5 * Copyright 2014 jQuery Foundation and other contributors
    66 * Released under the MIT license.
    77 * http://jquery.org/license
     
    2525
    2626$.widget( "ui.accordion", {
    27         version: "1.10.1",
     27        version: "1.10.4",
    2828        options: {
    2929                active: 0,
     
    103103                        .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" )
    104104                        .removeAttr( "role" )
     105                        .removeAttr( "aria-expanded" )
    105106                        .removeAttr( "aria-selected" )
    106107                        .removeAttr( "aria-controls" )
     
    117118                        .css( "display", "" )
    118119                        .removeAttr( "role" )
    119                         .removeAttr( "aria-expanded" )
    120120                        .removeAttr( "aria-hidden" )
    121121                        .removeAttr( "aria-labelledby" )
     
    168168
    169169        _keydown: function( event ) {
    170                 /*jshint maxcomplexity:15*/
    171170                if ( event.altKey || event.ctrlKey ) {
    172171                        return;
     
    222221                        this.active = $();
    223222                // active false only when collapsible is true
    224                 } if ( options.active === false ) {
     223                } else if ( options.active === false ) {
    225224                        this._activate( 0 );
    226225                // was active, but active panel is gone
     
    295294                        .attr({
    296295                                "aria-selected": "false",
     296                                "aria-expanded": "false",
    297297                                tabIndex: -1
    298298                        })
    299299                        .next()
    300300                                .attr({
    301                                         "aria-expanded": "false",
    302301                                        "aria-hidden": "true"
    303302                                })
     
    310309                        this.active.attr({
    311310                                "aria-selected": "true",
     311                                "aria-expanded": "true",
    312312                                tabIndex: 0
    313313                        })
    314314                        .next()
    315315                                .attr({
    316                                         "aria-expanded": "true",
    317316                                        "aria-hidden": "false"
    318317                                });
     
    469468
    470469                toHide.attr({
    471                         "aria-expanded": "false",
    472470                        "aria-hidden": "true"
    473471                });
     
    477475                // if we're collapsing, then keep the collapsing header in the tab order
    478476                if ( toShow.length && toHide.length ) {
    479                         toHide.prev().attr( "tabIndex", -1 );
     477                        toHide.prev().attr({
     478                                "tabIndex": -1,
     479                                "aria-expanded": "false"
     480                        });
    480481                } else if ( toShow.length ) {
    481482                        this.headers.filter(function() {
     
    486487
    487488                toShow
    488                         .attr({
    489                                 "aria-expanded": "true",
    490                                 "aria-hidden": "false"
    491                         })
     489                        .attr( "aria-hidden", "false" )
    492490                        .prev()
    493491                                .attr({
    494492                                        "aria-selected": "true",
    495                                         tabIndex: 0
     493                                        tabIndex: 0,
     494                                        "aria-expanded": "true"
    496495                                });
    497496        },
     
    565564                        toHide.parent()[0].className = toHide.parent()[0].className;
    566565                }
    567 
    568566                this._trigger( "activate", null, data );
    569567        }
Note: See TracChangeset for help on using the changeset viewer.