[Phpsysinfo-subversion] SF.net SVN: phpsysinfo:[667] branches/namiltd-ini
Brought to you by:
namiltd
From: <na...@us...> - 2012-08-31 09:03:36
|
Revision: 667 http://phpsysinfo.svn.sourceforge.net/phpsysinfo/?rev=667&view=rev Author: namiltd Date: 2012-08-31 09:03:26 +0000 (Fri, 31 Aug 2012) Log Message: ----------- Updated jQuery plugin to 1.8.1 Modified Paths: -------------- branches/namiltd-ini/ChangeLog branches/namiltd-ini/js/jQuery/README branches/namiltd-ini/js/jQuery/jquery.js Modified: branches/namiltd-ini/ChangeLog =================================================================== --- branches/namiltd-ini/ChangeLog 2012-08-29 08:34:08 UTC (rev 666) +++ branches/namiltd-ini/ChangeLog 2012-08-31 09:03:26 UTC (rev 667) @@ -5,6 +5,8 @@ - [UPD] Configuration moved from config.php and subdirs of "plugins" to one file phpsysinfo.ini - [UPD] Plugin ipmi ranamed to IPMIInfo and Update-Notifier to UpdateNotifier (to avoid name conflicts) - [UPD] Case-insensitive for most of parameters + - [UPD] Updated jQuery plugin to 1.8.1 + - [UPD] Updated jQuery plugin nyroModal to 1.6.2+jquery1.8fix - [FIX] Fixed Bug [ 3561124 ] Incorrect reading of free mem on Mac OS X (thanks to pbobbenb) Modified: branches/namiltd-ini/js/jQuery/README =================================================================== --- branches/namiltd-ini/js/jQuery/README 2012-08-29 08:34:08 UTC (rev 666) +++ branches/namiltd-ini/js/jQuery/README 2012-08-31 09:03:26 UTC (rev 667) @@ -3,7 +3,7 @@ jquery.js --------- -VERSION : 1.8.1pre 9683f82d9d89059371fe2e4428f2d4fe676966f2 +VERSION : 1.8.1 URL : http://jquery.com/ DESC : jQuery is a fast, concise, JavaScript Library that simplifies how you traverse HTML documents, handle events, perform animations, and add Ajax interactions to your web pages. Modified: branches/namiltd-ini/js/jQuery/jquery.js =================================================================== --- branches/namiltd-ini/js/jQuery/jquery.js 2012-08-29 08:34:08 UTC (rev 666) +++ branches/namiltd-ini/js/jQuery/jquery.js 2012-08-31 09:03:26 UTC (rev 667) @@ -1,5 +1,5 @@ /*! - * jQuery JavaScript Library v1.8.1pre 9683f82d9d89059371fe2e4428f2d4fe676966f2 + * jQuery JavaScript Library v1.8.1 * http://jquery.com/ * * Includes Sizzle.js @@ -9,7 +9,7 @@ * Released under the MIT license * http://jquery.org/license * - * Date: Tue Aug 28 2012 21:05:58 GMT-0700 (PDT) + * Date: Thu Aug 30 2012 17:17:22 GMT-0400 (Eastern Daylight Time) */ (function( window, undefined ) { var @@ -186,7 +186,7 @@ selector: "", // The current version of jQuery being used - jquery: "1.8.1pre 9683f82d9d89059371fe2e4428f2d4fe676966f2", + jquery: "1.8.1", // The default length of a jQuery object is 0 length: 0, @@ -4866,8 +4866,10 @@ return results.length > 0 ? fn( results, argument, not ) : []; } -function handlePOS( selector, context, results, seed, groups ) { - var match, not, anchor, ret, elements, currentContexts, part, lastIndex, +function handlePOS( groups, context, results, seed ) { + var group, part, j, groupLen, token, selector, + anchor, elements, match, matched, + lastIndex, currentContexts, not, i = 0, len = groups.length, rpos = matchExpr["POS"], @@ -4886,52 +4888,60 @@ }; for ( ; i < len; i++ ) { - // Reset regex index to 0 - rpos.exec(""); - selector = groups[i].selector; - ret = []; - anchor = 0; + group = groups[i]; + part = ""; elements = seed; - while ( (match = rpos.exec( selector )) ) { - lastIndex = rpos.lastIndex = match.index + match[0].length; - if ( lastIndex > anchor ) { - part = selector.slice( anchor, match.index ); - anchor = lastIndex; - currentContexts = [ context ]; + for ( j = 0, groupLen = group.length; j < groupLen; j++ ) { + token = group[j]; + selector = token.string; + if ( token.part === "PSEUDO" ) { + // Reset regex index to 0 + rpos.exec(""); + anchor = 0; + while ( (match = rpos.exec( selector )) ) { + matched = true; + lastIndex = rpos.lastIndex = match.index + match[0].length; + if ( lastIndex > anchor ) { + part += selector.slice( anchor, match.index ); + anchor = lastIndex; + currentContexts = [ context ]; - if ( rcombinators.test(part) ) { - if ( elements ) { - currentContexts = elements; + if ( rcombinators.test(part) ) { + if ( elements ) { + currentContexts = elements; + } + elements = seed; + } + + if ( (not = rendsWithNot.test( part )) ) { + part = part.slice( 0, -5 ).replace( rcombinators, "$&*" ); + anchor++; + } + + if ( match.length > 1 ) { + match[0].replace( rposgroups, setUndefined ); + } + elements = handlePOSGroup( part, match[1], match[2], currentContexts, elements, not ); } - elements = seed; + part = ""; } - if ( (not = rendsWithNot.test( part )) ) { - part = part.slice( 0, -5 ).replace( rcombinators, "$&*" ); - anchor++; - } + } - if ( match.length > 1 ) { - match[0].replace( rposgroups, setUndefined ); - } - elements = handlePOSGroup( part, match[1], match[2], currentContexts, elements, not ); + if ( !matched ) { + part += selector; } + matched = false; } - if ( elements ) { - ret = ret.concat( elements ); - - if ( (part = selector.slice( anchor )) ) { - if ( rcombinators.test(part) ) { - multipleContexts( part, ret, results, seed ); - } else { - Sizzle( part, context, results, seed ? seed.concat(elements) : elements ); - } + if ( part ) { + if ( rcombinators.test(part) ) { + multipleContexts( part, elements || [ context ], results, seed ); } else { - push.apply( results, ret ); + Sizzle( part, context, results, seed ? seed.concat(elements) : elements ); } } else { - Sizzle( selector, context, results, seed ); + push.apply( results, elements ); } } @@ -4949,7 +4959,7 @@ // POS handling if ( matchExpr["POS"].test(selector) ) { - return handlePOS( selector, context, results, seed, match ); + return handlePOS( match, context, results, seed ); } if ( seed ) { @@ -4960,11 +4970,12 @@ } else if ( match.length === 1 ) { // Take a shortcut and set the context if the root selector is an ID - if ( (tokens = slice.call( match[0], 0 )).length > 2 && Expr.relative[ tokens[1].part ] && + if ( (tokens = slice.call( match[0], 0 )).length > 2 && + (token = tokens[0]).part === "ID" && contextNodeType === 9 && !xml && - (match = matchExpr["ID"].exec( tokens[0].string )) ) { + Expr.relative[ tokens[1].part ] ) { - context = Expr.find["ID"]( match[1], context, xml )[0]; + context = Expr.find["ID"]( token.captures[0].replace( rbackslash, "" ), context, xml )[0]; if ( !context ) { return results; } @@ -6377,6 +6388,9 @@ ralpha = /alpha\([^)]*\)/i, ropacity = /opacity=([^)]*)/, rposition = /^(top|right|bottom|left)$/, + // swappable if display is none or starts with table except "table", "table-cell", or "table-caption" + // see here for display values: https://developer.mozilla.org/en-US/docs/CSS/display + rdisplayswap = /^(none|table(?!-c[ea]).+)/, rmargin = /^margin/, rnumsplit = new RegExp( "^(" + core_pnum + ")(.*)$", "i" ), rnumnonpx = new RegExp( "^(" + core_pnum + ")(?!px)[a-z%]+$", "i" ), @@ -6868,12 +6882,14 @@ jQuery.cssHooks[ name ] = { get: function( elem, computed, extra ) { if ( computed ) { - if ( elem.offsetWidth !== 0 || curCSS( elem, "display" ) !== "none" ) { - return getWidthOrHeight( elem, name, extra ); - } else { + // certain elements can have dimension info if we invisibly show them + // however, it must have a current display style that would benefit from this + if ( elem.offsetWidth === 0 && rdisplayswap.test( curCSS( elem, "display" ) ) ) { return jQuery.swap( elem, cssShow, function() { return getWidthOrHeight( elem, name, extra ); }); + } else { + return getWidthOrHeight( elem, name, extra ); } } }, @@ -8924,6 +8940,7 @@ // if we include width, step value is 1 to do all cssExpand values, // if we don't include width, step value is 2 to skip over Left and Right + includeWidth = includeWidth? 1 : 0; for( ; i < 4 ; i += 2 - includeWidth ) { which = cssExpand[ i ]; attrs[ "margin" + which ] = attrs[ "padding" + which ] = type; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |