Dotclear


Ignore:
Timestamp:
11/30/12 06:53:40 (13 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Update jQuery from 1.8.2 to 1.8.3, jQuery-UI from 1.9.0 to 1.9.2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/js/jquery/jquery.js

    • Property exe set to *
    r906 r1048  
    11/*! 
    2  * jQuery JavaScript Library v1.8.2 
     2 * jQuery JavaScript Library v1.8.3 
    33 * http://jquery.com/ 
    44 * 
     
    1010 * http://jquery.org/license 
    1111 * 
    12  * Date: Thu Sep 20 2012 21:13:05 GMT-0400 (Eastern Daylight Time) 
     12 * Date: Tue Nov 13 2012 08:20:33 GMT-0500 (Eastern Standard Time) 
    1313 */ 
    1414(function( window, undefined ) { 
     
    187187 
    188188     // The current version of jQuery being used 
    189      jquery: "1.8.2", 
     189     jquery: "1.8.3", 
    190190 
    191191     // The default length of a jQuery object is 0 
     
    10001000                              jQuery.each( args, function( _, arg ) { 
    10011001                                   var type = jQuery.type( arg ); 
    1002                                    if ( type === "function" && ( !options.unique || !self.has( arg ) ) ) { 
    1003                                         list.push( arg ); 
     1002                                   if ( type === "function" ) { 
     1003                                        if ( !options.unique || !self.has( arg ) ) { 
     1004                                             list.push( arg ); 
     1005                                        } 
    10041006                                   } else if ( arg && arg.length && type !== "string" ) { 
    10051007                                        // Inspect recursively 
     
    12541256          div = document.createElement("div"); 
    12551257 
    1256      // Preliminary tests 
     1258     // Setup 
    12571259     div.setAttribute( "className", "t" ); 
    12581260     div.innerHTML = "  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>"; 
    12591261 
     1262     // Support tests won't run in some limited or non-browser environments 
    12601263     all = div.getElementsByTagName("*"); 
    12611264     a = div.getElementsByTagName("a")[ 0 ]; 
    1262      a.style.cssText = "top:1px;float:left;opacity:.5"; 
    1263  
    1264      // Can't get basic test support 
    1265      if ( !all || !all.length ) { 
     1265     if ( !all || !a || !all.length ) { 
    12661266          return {}; 
    12671267     } 
    12681268 
    1269      // First batch of supports tests 
     1269     // First batch of tests 
    12701270     select = document.createElement("select"); 
    12711271     opt = select.appendChild( document.createElement("option") ); 
    12721272     input = div.getElementsByTagName("input")[ 0 ]; 
    12731273 
     1274     a.style.cssText = "top:1px;float:left;opacity:.5"; 
    12741275     support = { 
    12751276          // IE strips leading whitespace when .innerHTML is used 
     
    13131314          getSetAttribute: div.className !== "t", 
    13141315 
    1315           // Tests for enctype support on a form(#6743) 
     1316          // Tests for enctype support on a form (#6743) 
    13161317          enctype: !!document.createElement("form").enctype, 
    13171318 
     
    22182219          select: { 
    22192220               get: function( elem ) { 
    2220                     var value, i, max, option, 
     2221                    var value, option, 
     2222                         options = elem.options, 
    22212223                         index = elem.selectedIndex, 
    2222                          values = [], 
    2223                          options = elem.options, 
    2224                          one = elem.type === "select-one"; 
    2225  
    2226                     // Nothing was selected 
    2227                     if ( index < 0 ) { 
    2228                          return null; 
    2229                     } 
     2224                         one = elem.type === "select-one" || index < 0, 
     2225                         values = one ? null : [], 
     2226                         max = one ? index + 1 : options.length, 
     2227                         i = index < 0 ? 
     2228                              max : 
     2229                              one ? index : 0; 
    22302230 
    22312231                    // Loop through all the selected options 
    2232                     i = one ? index : 0; 
    2233                     max = one ? index + 1 : options.length; 
    22342232                    for ( ; i < max; i++ ) { 
    22352233                         option = options[ i ]; 
    22362234 
    2237                          // Don't return options that are disabled or in a disabled optgroup 
    2238                          if ( option.selected && (jQuery.support.optDisabled ? !option.disabled : option.getAttribute("disabled") === null) && 
    2239                                    (!option.parentNode.disabled || !jQuery.nodeName( option.parentNode, "optgroup" )) ) { 
     2235                         // oldIE doesn't update selected after form reset (#2551) 
     2236                         if ( ( option.selected || i === index ) && 
     2237                                   // Don't return options that are disabled or in a disabled optgroup 
     2238                                   ( jQuery.support.optDisabled ? !option.disabled : option.getAttribute("disabled") === null ) && 
     2239                                   ( !option.parentNode.disabled || !jQuery.nodeName( option.parentNode, "optgroup" ) ) ) { 
    22402240 
    22412241                              // Get the specific value for the option 
     
    22502250                              values.push( value ); 
    22512251                         } 
    2252                     } 
    2253  
    2254                     // Fixes Bug #2551 -- select.val() broken in IE after form.reset() 
    2255                     if ( one && !values.length && options.length ) { 
    2256                          return jQuery( options[ index ] ).val(); 
    22572252                    } 
    22582253 
     
    32343229          if ( elem.detachEvent ) { 
    32353230 
    3236                // #8545, #7054, preventing memory leaks for custom events in IE6-8 – 
     3231               // #8545, #7054, preventing memory leaks for custom events in IE6-8 
    32373232               // detachEvent needed property on element, by name of that event, to properly expose it to GC 
    32383233               if ( typeof elem[ name ] === "undefined" ) { 
     
    37263721               } 
    37273722 
    3728                return (cache[ key ] = value); 
     3723               // Retrieve with (key + " ") to avoid collision with native Object.prototype properties (see Issue #157) 
     3724               return (cache[ key + " " ] = value); 
    37293725          }, cache ); 
    37303726     }, 
     
    42604256 
    42614257          "CLASS": function( className ) { 
    4262                var pattern = classCache[ expando ][ className ]; 
    4263                if ( !pattern ) { 
    4264                     pattern = classCache( className, new RegExp("(^|" + whitespace + ")" + className + "(" + whitespace + "|$)") ); 
    4265                } 
    4266                return function( elem ) { 
    4267                     return pattern.test( elem.className || (typeof elem.getAttribute !== strundefined && elem.getAttribute("class")) || "" ); 
    4268                }; 
     4258               var pattern = classCache[ expando ][ className + " " ]; 
     4259 
     4260               return pattern || 
     4261                    (pattern = new RegExp( "(^|" + whitespace + ")" + className + "(" + whitespace + "|$)" )) && 
     4262                    classCache( className, function( elem ) { 
     4263                         return pattern.test( elem.className || (typeof elem.getAttribute !== strundefined && elem.getAttribute("class")) || "" ); 
     4264                    }); 
    42694265          }, 
    42704266 
     
    45124508          "focus": function( elem ) { 
    45134509               var doc = elem.ownerDocument; 
    4514                return elem === doc.activeElement && (!doc.hasFocus || doc.hasFocus()) && !!(elem.type || elem.href); 
     4510               return elem === doc.activeElement && (!doc.hasFocus || doc.hasFocus()) && !!(elem.type || elem.href || ~elem.tabIndex); 
    45154511          }, 
    45164512 
     
    45204516 
    45214517          // Positional types 
    4522           "first": createPositionalPseudo(function( matchIndexes, length, argument ) { 
     4518          "first": createPositionalPseudo(function() { 
    45234519               return [ 0 ]; 
    45244520          }), 
    45254521 
    4526           "last": createPositionalPseudo(function( matchIndexes, length, argument ) { 
     4522          "last": createPositionalPseudo(function( matchIndexes, length ) { 
    45274523               return [ length - 1 ]; 
    45284524          }), 
     
    45324528          }), 
    45334529 
    4534           "even": createPositionalPseudo(function( matchIndexes, length, argument ) { 
     4530          "even": createPositionalPseudo(function( matchIndexes, length ) { 
    45354531               for ( var i = 0; i < length; i += 2 ) { 
    45364532                    matchIndexes.push( i ); 
     
    45394535          }), 
    45404536 
    4541           "odd": createPositionalPseudo(function( matchIndexes, length, argument ) { 
     4537          "odd": createPositionalPseudo(function( matchIndexes, length ) { 
    45424538               for ( var i = 1; i < length; i += 2 ) { 
    45434539                    matchIndexes.push( i ); 
     
    46604656Sizzle.uniqueSort = function( results ) { 
    46614657     var elem, 
    4662           i = 1; 
     4658          duplicates = [], 
     4659          i = 1, 
     4660          j = 0; 
    46634661 
    46644662     hasDuplicate = baseHasDuplicate; 
     
    46684666          for ( ; (elem = results[i]); i++ ) { 
    46694667               if ( elem === results[ i - 1 ] ) { 
    4670                     results.splice( i--, 1 ); 
    4671                } 
     4668                    j = duplicates.push( i ); 
     4669               } 
     4670          } 
     4671          while ( j-- ) { 
     4672               results.splice( duplicates[ j ], 1 ); 
    46724673          } 
    46734674     } 
     
    46814682 
    46824683function tokenize( selector, parseOnly ) { 
    4683      var matched, match, tokens, type, soFar, groups, preFilters, 
    4684           cached = tokenCache[ expando ][ selector ]; 
     4684     var matched, match, tokens, type, 
     4685          soFar, groups, preFilters, 
     4686          cached = tokenCache[ expando ][ selector + " " ]; 
    46854687 
    46864688     if ( cached ) { 
     
    46974699          if ( !matched || (match = rcomma.exec( soFar )) ) { 
    46984700               if ( match ) { 
    4699                     soFar = soFar.slice( match[0].length ); 
     4701                    // Don't consume trailing commas as valid 
     4702                    soFar = soFar.slice( match[0].length ) || soFar; 
    47004703               } 
    47014704               groups.push( tokens = [] ); 
     
    47164719          for ( type in Expr.filter ) { 
    47174720               if ( (match = matchExpr[ type ].exec( soFar )) && (!preFilters[ type ] || 
    4718                     // The last two arguments here are (context, xml) for backCompat 
    4719                     (match = preFilters[ type ]( match, document, true ))) ) { 
     4721                    (match = preFilters[ type ]( match ))) ) { 
    47204722 
    47214723                    tokens.push( matched = new Token( match.shift() ) ); 
     
    48374839     } 
    48384840     return markFunction(function( seed, results, context, xml ) { 
    4839           // Positional selectors apply to seed elements, so it is invalid to follow them with relative ones 
    4840           if ( seed && postFinder ) { 
    4841                return; 
    4842           } 
    4843  
    4844           var i, elem, postFilterIn, 
     4841          var temp, i, elem, 
    48454842               preMap = [], 
    48464843               postMap = [], 
     
    48484845 
    48494846               // Get initial elements from seed or context 
    4850                elems = seed || multipleContexts( selector || "*", context.nodeType ? [ context ] : context, [], seed ), 
     4847               elems = seed || multipleContexts( selector || "*", context.nodeType ? [ context ] : context, [] ), 
    48514848 
    48524849               // Prefilter to get matcher input, preserving a map for seed-results synchronization 
     
    48734870          // Apply postFilter 
    48744871          if ( postFilter ) { 
    4875                postFilterIn = condense( matcherOut, postMap ); 
    4876                postFilter( postFilterIn, [], context, xml ); 
     4872               temp = condense( matcherOut, postMap ); 
     4873               postFilter( temp, [], context, xml ); 
    48774874 
    48784875               // Un-match failing elements by moving them back to matcherIn 
    4879                i = postFilterIn.length; 
     4876               i = temp.length; 
    48804877               while ( i-- ) { 
    4881                     if ( (elem = postFilterIn[i]) ) { 
     4878                    if ( (elem = temp[i]) ) { 
    48824879                         matcherOut[ postMap[i] ] = !(matcherIn[ postMap[i] ] = elem); 
    48834880                    } 
     
    48854882          } 
    48864883 
    4887           // Keep seed and results synchronized 
    48884884          if ( seed ) { 
    4889                // Ignore postFinder because it can't coexist with seed 
    4890                i = preFilter && matcherOut.length; 
    4891                while ( i-- ) { 
    4892                     if ( (elem = matcherOut[i]) ) { 
    4893                          seed[ preMap[i] ] = !(results[ preMap[i] ] = elem); 
    4894                     } 
    4895                } 
     4885               if ( postFinder || preFilter ) { 
     4886                    if ( postFinder ) { 
     4887                         // Get the final matcherOut by condensing this intermediate into postFinder contexts 
     4888                         temp = []; 
     4889                         i = matcherOut.length; 
     4890                         while ( i-- ) { 
     4891                              if ( (elem = matcherOut[i]) ) { 
     4892                                   // Restore matcherIn since elem is not yet a final match 
     4893                                   temp.push( (matcherIn[i] = elem) ); 
     4894                              } 
     4895                         } 
     4896                         postFinder( null, (matcherOut = []), temp, xml ); 
     4897                    } 
     4898 
     4899                    // Move matched elements from seed to results to keep them synchronized 
     4900                    i = matcherOut.length; 
     4901                    while ( i-- ) { 
     4902                         if ( (elem = matcherOut[i]) && 
     4903                              (temp = postFinder ? indexOf.call( seed, elem ) : preMap[i]) > -1 ) { 
     4904 
     4905                              seed[temp] = !(results[temp] = elem); 
     4906                         } 
     4907                    } 
     4908               } 
     4909 
     4910          // Add elements to results, through postFinder if defined 
    48964911          } else { 
    48974912               matcherOut = condense( 
     
    49344949               matchers = [ addCombinator( elementMatcher( matchers ), matcher ) ]; 
    49354950          } else { 
    4936                // The concatenated values are (context, xml) for backCompat 
    49374951               matcher = Expr.filter[ tokens[i].type ].apply( null, tokens[i].matches ); 
    49384952 
     
    50635077          setMatchers = [], 
    50645078          elementMatchers = [], 
    5065           cached = compilerCache[ expando ][ selector ]; 
     5079          cached = compilerCache[ expando ][ selector + " " ]; 
    50665080 
    50675081     if ( !cached ) { 
     
    50865100}; 
    50875101 
    5088 function multipleContexts( selector, contexts, results, seed ) { 
     5102function multipleContexts( selector, contexts, results ) { 
    50895103     var i = 0, 
    50905104          len = contexts.length; 
    50915105     for ( ; i < len; i++ ) { 
    5092           Sizzle( selector, contexts[i], results, seed ); 
     5106          Sizzle( selector, contexts[i], results ); 
    50935107     } 
    50945108     return results; 
     
    51685182               rattributeQuotes = /\=[\x20\t\r\n\f]*([^'"\]]*)[\x20\t\r\n\f]*\]/g, 
    51695183 
    5170                // qSa(:focus) reports false when true (Chrome 21), 
     5184               // qSa(:focus) reports false when true (Chrome 21), no need to also add to buggyMatches since matches checks buggyQSA 
    51715185               // A support test would require too much code (would include document ready) 
    5172                rbuggyQSA = [":focus"], 
    5173  
    5174                // matchesSelector(:focus) reports false when true (Chrome 21), 
     5186               rbuggyQSA = [ ":focus" ], 
     5187 
    51755188               // matchesSelector(:active) reports false when true (IE9/Opera 11.5) 
    51765189               // A support test would require too much code (would include document ready) 
    51775190               // just skip matchesSelector for :active 
    5178                rbuggyMatches = [ ":active", ":focus" ], 
     5191               rbuggyMatches = [ ":active" ], 
    51795192               matches = docElem.matchesSelector || 
    51805193                    docElem.mozMatchesSelector || 
     
    52305243               // when this is not xml, 
    52315244               // and when no QSA bugs apply 
    5232                if ( !seed && !xml && (!rbuggyQSA || !rbuggyQSA.test( selector )) ) { 
     5245               if ( !seed && !xml && !rbuggyQSA.test( selector ) ) { 
    52335246                    var groups, i, 
    52345247                         old = true, 
     
    52995312 
    53005313                    // rbuggyMatches always contains :active, so no need for an existence check 
    5301                     if ( !isXML( elem ) && !rbuggyMatches.test( expr ) && (!rbuggyQSA || !rbuggyQSA.test( expr )) ) { 
     5314                    if ( !isXML( elem ) && !rbuggyMatches.test( expr ) && !rbuggyQSA.test( expr ) ) { 
    53025315                         try { 
    53035316                              var ret = matches.call( elem, expr ); 
     
    65346547     rnumnonpx = new RegExp( "^(" + core_pnum + ")(?!px)[a-z%]+$", "i" ), 
    65356548     rrelNum = new RegExp( "^([-+])=(" + core_pnum + ")", "i" ), 
    6536      elemdisplay = {}, 
     6549     elemdisplay = { BODY: "block" }, 
    65376550 
    65386551     cssShow = { position: "absolute", visibility: "hidden", display: "block" }, 
     
    68156828          if ( computed ) { 
    68166829 
    6817                ret = computed[ name ]; 
     6830               // getPropertyValue is only needed for .css('filter') in IE9, see #12537 
     6831               ret = computed.getPropertyValue( name ) || computed[ name ]; 
     6832 
    68186833               if ( ret === "" && !jQuery.contains( elem.ownerDocument, elem ) ) { 
    68196834                    ret = jQuery.style( elem, name ); 
     
    78447859          // A cross-domain request is in order when we have a protocol:host:port mismatch 
    78457860          if ( s.crossDomain == null ) { 
    7846                parts = rurl.exec( s.url.toLowerCase() ) || false; 
    7847                s.crossDomain = parts && ( parts.join(":") + ( parts[ 3 ] ? "" : parts[ 1 ] === "http:" ? 80 : 443 ) ) !== 
    7848                     ( ajaxLocParts.join(":") + ( ajaxLocParts[ 3 ] ? "" : ajaxLocParts[ 1 ] === "http:" ? 80 : 443 ) ); 
     7861               parts = rurl.exec( s.url.toLowerCase() ); 
     7862               s.crossDomain = !!( parts && 
     7863                    ( parts[ 1 ] !== ajaxLocParts[ 1 ] || parts[ 2 ] !== ajaxLocParts[ 2 ] || 
     7864                         ( parts[ 3 ] || ( parts[ 1 ] === "http:" ? 80 : 443 ) ) != 
     7865                              ( ajaxLocParts[ 3 ] || ( ajaxLocParts[ 1 ] === "http:" ? 80 : 443 ) ) ) 
     7866               ); 
    78497867          } 
    78507868 
     
    84658483                                             try { 
    84668484                                                  responses.text = xhr.responseText; 
    8467                                              } catch( _ ) { 
     8485                                             } catch( e ) { 
    84688486                                             } 
    84698487 
     
    86188636               var currentTime = fxNow || createFxNow(), 
    86198637                    remaining = Math.max( 0, animation.startTime + animation.duration - currentTime ), 
    8620                     percent = 1 - ( remaining / animation.duration || 0 ), 
     8638                    // archaic crash bug won't allow us to use 1 - ( 0.5 || 0 ) (#12497) 
     8639                    temp = remaining / animation.duration || 0, 
     8640                    percent = 1 - temp, 
    86218641                    index = 0, 
    86228642                    length = animation.tweens.length; 
     
    87708790 
    87718791function defaultPrefilter( elem, props, opts ) { 
    8772      var index, prop, value, length, dataShow, tween, hooks, oldfire, 
     8792     var index, prop, value, length, dataShow, toggle, tween, hooks, oldfire, 
    87738793          anim = this, 
    87748794          style = elem.style, 
     
    88448864          if ( rfxtypes.exec( value ) ) { 
    88458865               delete props[ index ]; 
     8866               toggle = toggle || value === "toggle"; 
    88468867               if ( value === ( hidden ? "hide" : "show" ) ) { 
    88478868                    continue; 
     
    88548875     if ( length ) { 
    88558876          dataShow = jQuery._data( elem, "fxshow" ) || jQuery._data( elem, "fxshow", {} ); 
     8877          if ( "hidden" in dataShow ) { 
     8878               hidden = dataShow.hidden; 
     8879          } 
     8880 
     8881          // store state if its toggle - enables .stop().toggle() to "reverse" 
     8882          if ( toggle ) { 
     8883               dataShow.hidden = !hidden; 
     8884          } 
    88568885          if ( hidden ) { 
    88578886               jQuery( elem ).show(); 
     
    91509179          i = 0; 
    91519180 
     9181     fxNow = jQuery.now(); 
     9182 
    91529183     for ( ; i < timers.length; i++ ) { 
    91539184          timer = timers[ i ]; 
     
    91619192          jQuery.fx.stop(); 
    91629193     } 
     9194     fxNow = undefined; 
    91639195}; 
    91649196 
Note: See TracChangeset for help on using the changeset viewer.

Sites map