web/data/jquery.js
changeset 7796 8d8bde949535
parent 7785 ceabf79b738a
child 7797 a71618a75b53
equal deleted inserted replaced
7795:b8027b317d1c 7796:8d8bde949535
     1 /*!
     1 /*!
     2  * jQuery JavaScript Library v1.6.3
     2  * jQuery JavaScript Library v1.6.4
     3  * http://jquery.com/
     3  * http://jquery.com/
     4  *
     4  *
     5  * Copyright 2011, John Resig
     5  * Copyright 2011, John Resig
     6  * Dual licensed under the MIT or GPL Version 2 licenses.
     6  * Dual licensed under the MIT or GPL Version 2 licenses.
     7  * http://jquery.org/license
     7  * http://jquery.org/license
     9  * Includes Sizzle.js
     9  * Includes Sizzle.js
    10  * http://sizzlejs.com/
    10  * http://sizzlejs.com/
    11  * Copyright 2011, The Dojo Foundation
    11  * Copyright 2011, The Dojo Foundation
    12  * Released under the MIT, BSD, and GPL Licenses.
    12  * Released under the MIT, BSD, and GPL Licenses.
    13  *
    13  *
    14  * Date: Wed Aug 31 10:35:15 2011 -0400
    14  * Date: Mon Sep 12 18:54:48 2011 -0400
    15  */
    15  */
    16 (function( window, undefined ) {
    16 (function( window, undefined ) {
    17 
    17 
    18 // Use the correct document accordingly with window argument (sandbox)
    18 // Use the correct document accordingly with window argument (sandbox)
    19 var document = window.document,
    19 var document = window.document,
   211 
   211 
   212 	// Start with an empty selector
   212 	// Start with an empty selector
   213 	selector: "",
   213 	selector: "",
   214 
   214 
   215 	// The current version of jQuery being used
   215 	// The current version of jQuery being used
   216 	jquery: "1.6.3",
   216 	jquery: "1.6.4",
   217 
   217 
   218 	// The default length of a jQuery object is 0
   218 	// The default length of a jQuery object is 0
   219 	length: 0,
   219 	length: 0,
   220 
   220 
   221 	// The number of elements contained in the matched element set
   221 	// The number of elements contained in the matched element set
  1177 		i,
  1177 		i,
  1178 		isSupported;
  1178 		isSupported;
  1179 
  1179 
  1180 	// Preliminary tests
  1180 	// Preliminary tests
  1181 	div.setAttribute("className", "t");
  1181 	div.setAttribute("className", "t");
  1182 	div.innerHTML = "   <link><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type=checkbox>";
  1182 	div.innerHTML = "   <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>";
  1183 
  1183 
  1184 
  1184 
  1185 	all = div.getElementsByTagName( "*" );
  1185 	all = div.getElementsByTagName( "*" );
  1186 	a = div.getElementsByTagName( "a" )[ 0 ];
  1186 	a = div.getElementsByTagName( "a" )[ 0 ];
  1187 
  1187 
  1412 
  1412 
  1413 
  1413 
  1414 
  1414 
  1415 
  1415 
  1416 var rbrace = /^(?:\{.*\}|\[.*\])$/,
  1416 var rbrace = /^(?:\{.*\}|\[.*\])$/,
  1417 	rmultiDash = /([a-z])([A-Z])/g;
  1417 	rmultiDash = /([A-Z])/g;
  1418 
  1418 
  1419 jQuery.extend({
  1419 jQuery.extend({
  1420 	cache: {},
  1420 	cache: {},
  1421 
  1421 
  1422 	// Please use with caution
  1422 	// Please use with caution
  1727 
  1727 
  1728 function dataAttr( elem, key, data ) {
  1728 function dataAttr( elem, key, data ) {
  1729 	// If nothing was found internally, try to fetch any
  1729 	// If nothing was found internally, try to fetch any
  1730 	// data from the HTML5 data-* attribute
  1730 	// data from the HTML5 data-* attribute
  1731 	if ( data === undefined && elem.nodeType === 1 ) {
  1731 	if ( data === undefined && elem.nodeType === 1 ) {
  1732 		var name = "data-" + key.replace( rmultiDash, "$1-$2" ).toLowerCase();
  1732 
       
  1733 		var name = "data-" + key.replace( rmultiDash, "-$1" ).toLowerCase();
  1733 
  1734 
  1734 		data = elem.getAttribute( name );
  1735 		data = elem.getAttribute( name );
  1735 
  1736 
  1736 		if ( typeof data === "string" ) {
  1737 		if ( typeof data === "string" ) {
  1737 			try {
  1738 			try {
  3268 
  3269 
  3269 	jQuery.event.special.submit = {
  3270 	jQuery.event.special.submit = {
  3270 		setup: function( data, namespaces ) {
  3271 		setup: function( data, namespaces ) {
  3271 			if ( !jQuery.nodeName( this, "form" ) ) {
  3272 			if ( !jQuery.nodeName( this, "form" ) ) {
  3272 				jQuery.event.add(this, "click.specialSubmit", function( e ) {
  3273 				jQuery.event.add(this, "click.specialSubmit", function( e ) {
       
  3274 					// Avoid triggering error on non-existent type attribute in IE VML (#7071)
  3273 					var elem = e.target,
  3275 					var elem = e.target,
  3274 						type = jQuery.nodeName( elem, "input" ) ? elem.type : "";
  3276 						type = jQuery.nodeName( elem, "input" ) || jQuery.nodeName( elem, "button" ) ? elem.type : "";
  3275 
  3277 
  3276 					if ( (type === "submit" || type === "image") && jQuery( elem ).closest("form").length ) {
  3278 					if ( (type === "submit" || type === "image") && jQuery( elem ).closest("form").length ) {
  3277 						trigger( "submit", this, arguments );
  3279 						trigger( "submit", this, arguments );
  3278 					}
  3280 					}
  3279 				});
  3281 				});
  3280 
  3282 
  3281 				jQuery.event.add(this, "keypress.specialSubmit", function( e ) {
  3283 				jQuery.event.add(this, "keypress.specialSubmit", function( e ) {
  3282 					var elem = e.target,
  3284 					var elem = e.target,
  3283 						type = jQuery.nodeName( elem, "input" ) ? elem.type : "";
  3285 						type = jQuery.nodeName( elem, "input" ) || jQuery.nodeName( elem, "button" ) ? elem.type : "";
  3284 
  3286 
  3285 					if ( (type === "text" || type === "password") && jQuery( elem ).closest("form").length && e.keyCode === 13 ) {
  3287 					if ( (type === "text" || type === "password") && jQuery( elem ).closest("form").length && e.keyCode === 13 ) {
  3286 						trigger( "submit", this, arguments );
  3288 						trigger( "submit", this, arguments );
  3287 					}
  3289 					}
  3288 				});
  3290 				});