Changeset 3528:6c3b56091267 for admin
- Timestamp:
- 02/11/17 12:34:46 (9 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/js/jquery/jquery.js
r3178 r3528 1 1 /*! 2 * jQuery JavaScript Library v2.2. 02 * jQuery JavaScript Library v2.2.4 3 3 * http://jquery.com/ 4 4 * … … 10 10 * http://jquery.org/license 11 11 * 12 * Date: 2016-0 1-08T20:02Z12 * Date: 2016-05-20T17:23Z 13 13 */ 14 14 … … 66 66 67 67 var 68 version = "2.2. 0",68 version = "2.2.4", 69 69 70 70 // Define a local copy of jQuery … … 277 277 278 278 isPlainObject: function( obj ) { 279 var key; 279 280 280 281 // Not plain objects: … … 286 287 } 287 288 289 // Not own constructor property must be Object 288 290 if ( obj.constructor && 289 !hasOwn.call( obj.constructor.prototype, "isPrototypeOf" ) ) { 291 !hasOwn.call( obj, "constructor" ) && 292 !hasOwn.call( obj.constructor.prototype || {}, "isPrototypeOf" ) ) { 290 293 return false; 291 294 } 292 295 293 // If the function hasn't returned already, we're confident that 294 // |obj| is a plain object, created by {} or constructed with new Object 295 return true; 296 // Own properties are enumerated firstly, so to speed up, 297 // if last one is own, then all properties are own 298 for ( key in obj ) {} 299 300 return key === undefined || hasOwn.call( obj, key ); 296 301 }, 297 302 … … 4480 4485 fn = returnFalse; 4481 4486 } else if ( !fn ) { 4482 return this;4487 return elem; 4483 4488 } 4484 4489 … … 5002 5007 isPropagationStopped: returnFalse, 5003 5008 isImmediatePropagationStopped: returnFalse, 5009 isSimulated: false, 5004 5010 5005 5011 preventDefault: function() { … … 5008 5014 this.isDefaultPrevented = returnTrue; 5009 5015 5010 if ( e ) {5016 if ( e && !this.isSimulated ) { 5011 5017 e.preventDefault(); 5012 5018 } … … 5017 5023 this.isPropagationStopped = returnTrue; 5018 5024 5019 if ( e ) {5025 if ( e && !this.isSimulated ) { 5020 5026 e.stopPropagation(); 5021 5027 } … … 5026 5032 this.isImmediatePropagationStopped = returnTrue; 5027 5033 5028 if ( e ) {5034 if ( e && !this.isSimulated ) { 5029 5035 e.stopImmediatePropagation(); 5030 5036 } … … 5129 5135 rcleanScript = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g; 5130 5136 5137 // Manipulating tables requires a tbody 5131 5138 function manipulationTarget( elem, content ) { 5132 if ( jQuery.nodeName( elem, "table" ) && 5133 jQuery.nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ) { 5134 5135 return elem.getElementsByTagName( "tbody" )[ 0 ] || elem; 5136 } 5137 5138 return elem; 5139 return jQuery.nodeName( elem, "table" ) && 5140 jQuery.nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ? 5141 5142 elem.getElementsByTagName( "tbody" )[ 0 ] || 5143 elem.appendChild( elem.ownerDocument.createElement( "tbody" ) ) : 5144 elem; 5139 5145 } 5140 5146 … … 5643 5649 var view = elem.ownerDocument.defaultView; 5644 5650 5645 if ( !view .opener ) {5651 if ( !view || !view.opener ) { 5646 5652 view = window; 5647 5653 } … … 5792 5798 5793 5799 computed = computed || getStyles( elem ); 5800 ret = computed ? computed.getPropertyValue( name ) || computed[ name ] : undefined; 5801 5802 // Support: Opera 12.1x only 5803 // Fall back to style even without computed 5804 // computed is undefined for elems on document fragments 5805 if ( ( ret === "" || ret === undefined ) && !jQuery.contains( elem.ownerDocument, elem ) ) { 5806 ret = jQuery.style( elem, name ); 5807 } 5794 5808 5795 5809 // Support: IE9 5796 5810 // getPropertyValue is only needed for .css('filter') (#12537) 5797 5811 if ( computed ) { 5798 ret = computed.getPropertyValue( name ) || computed[ name ];5799 5800 if ( ret === "" && !jQuery.contains( elem.ownerDocument, elem ) ) {5801 ret = jQuery.style( elem, name );5802 }5803 5812 5804 5813 // A tribute to the "awesome hack by Dean Edwards" … … 5953 5962 styles = getStyles( elem ), 5954 5963 isBorderBox = jQuery.css( elem, "boxSizing", false, styles ) === "border-box"; 5955 5956 // Support: IE11 only5957 // In IE 11 fullscreen elements inside of an iframe have5958 // 100x too small dimensions (gh-1764).5959 if ( document.msFullscreenElement && window.top !== window ) {5960 5961 // Support: IE11 only5962 // Running getBoundingClientRect on a disconnected node5963 // in IE throws an error.5964 if ( elem.getClientRects().length ) {5965 val = Math.round( elem.getBoundingClientRect()[ name ] * 100 );5966 }5967 }5968 5964 5969 5965 // Some non-html elements return undefined for offsetWidth, so check for null/undefined … … 7323 7319 } ); 7324 7320 7321 // Support: IE <=11 only 7322 // Accessing the selectedIndex property 7323 // forces the browser to respect setting selected 7324 // on the option 7325 // The getter ensures a default option is selected 7326 // when in an optgroup 7325 7327 if ( !support.optSelected ) { 7326 7328 jQuery.propHooks.selected = { … … 7331 7333 } 7332 7334 return null; 7335 }, 7336 set: function( elem ) { 7337 var parent = elem.parentNode; 7338 if ( parent ) { 7339 parent.selectedIndex; 7340 7341 if ( parent.parentNode ) { 7342 parent.parentNode.selectedIndex; 7343 } 7344 } 7333 7345 } 7334 7346 }; … … 7525 7537 7526 7538 7527 var rreturn = /\r/g; 7539 var rreturn = /\r/g, 7540 rspaces = /[\x20\t\r\n\f]+/g; 7528 7541 7529 7542 jQuery.fn.extend( { … … 7601 7614 get: function( elem ) { 7602 7615 7603 // Support: IE<11 7604 // option.value not trimmed (#14858) 7605 return jQuery.trim( elem.value ); 7616 var val = jQuery.find.attr( elem, "value" ); 7617 return val != null ? 7618 val : 7619 7620 // Support: IE10-11+ 7621 // option.text throws exceptions (#14686, #14858) 7622 // Strip and collapse whitespace 7623 // https://html.spec.whatwg.org/#strip-and-collapse-whitespace 7624 jQuery.trim( jQuery.text( elem ) ).replace( rspaces, " " ); 7606 7625 } 7607 7626 }, … … 7656 7675 option = options[ i ]; 7657 7676 if ( option.selected = 7658 7677 jQuery.inArray( jQuery.valHooks.option.get( option ), values ) > -1 7659 7678 ) { 7660 7679 optionSet = true; … … 7834 7853 7835 7854 // Piggyback on a donor event to simulate a different one 7855 // Used only for `focus(in | out)` events 7836 7856 simulate: function( type, elem, event ) { 7837 7857 var e = jQuery.extend( … … 7841 7861 type: type, 7842 7862 isSimulated: true 7843 7844 // Previously, `originalEvent: {}` was set here, so stopPropagation call7845 // would not be triggered on donor event, since in our own7846 // jQuery.event.stopPropagation function we had a check for existence of7847 // originalEvent.stopPropagation method, so, consequently it would be a noop.7848 //7849 // But now, this "simulate" function is used only for events7850 // for which stopPropagation() is noop, so there is no need for that anymore.7851 //7852 // For the compat branch though, guard for "click" and "submit"7853 // events is still used, but was moved to jQuery.event.stopPropagation function7854 // because `originalEvent` should point to the original event for the constancy7855 // with other events and for more focused logic7856 7863 } 7857 7864 ); 7858 7865 7859 7866 jQuery.event.trigger( e, null, elem ); 7860 7861 if ( e.isDefaultPrevented() ) {7862 event.preventDefault();7863 }7864 7867 } 7865 7868 … … 9351 9354 9352 9355 9353 // Support: Safari 8+9354 // In Safari 8 documents created via document.implementation.createHTMLDocument9355 // collapse sibling forms: the second one becomes a child of the first one.9356 // Because of that, this security measure has to be disabled in Safari 8.9357 // https://bugs.webkit.org/show_bug.cgi?id=1373379358 support.createHTMLDocument = ( function() {9359 var body = document.implementation.createHTMLDocument( "" ).body;9360 body.innerHTML = "<form></form><form></form>";9361 return body.childNodes.length === 2;9362 } )();9363 9364 9365 9356 // Argument "data" should be string of html 9366 9357 // context (optional): If specified, the fragment will be created in this context, … … 9375 9366 context = false; 9376 9367 } 9377 9378 // Stop scripts or inline event handlers from being executed immediately 9379 // by using document.implementation 9380 context = context || ( support.createHTMLDocument ? 9381 document.implementation.createHTMLDocument( "" ) : 9382 document ); 9368 context = context || document; 9383 9369 9384 9370 var parsed = rsingleTag.exec( data ), … … 9462 9448 } ).always( callback && function( jqXHR, status ) { 9463 9449 self.each( function() { 9464 callback.apply( self, response || [ jqXHR.responseText, status, jqXHR ] );9450 callback.apply( this, response || [ jqXHR.responseText, status, jqXHR ] ); 9465 9451 } ); 9466 9452 } ); … … 9620 9606 9621 9607 // Add offsetParent borders 9622 // Subtract offsetParent scroll positions 9623 parentOffset.top += jQuery.css( offsetParent[ 0 ], "borderTopWidth", true ) - 9624 offsetParent.scrollTop(); 9625 parentOffset.left += jQuery.css( offsetParent[ 0 ], "borderLeftWidth", true ) - 9626 offsetParent.scrollLeft(); 9608 parentOffset.top += jQuery.css( offsetParent[ 0 ], "borderTopWidth", true ); 9609 parentOffset.left += jQuery.css( offsetParent[ 0 ], "borderLeftWidth", true ); 9627 9610 } 9628 9611
Note: See TracChangeset
for help on using the changeset viewer.