Update: jQuery 2.0 & jQuery UI 1.10.3
This commit is contained in:
+11967
-12697
File diff suppressed because it is too large
Load Diff
@@ -1,11 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<bundle minify="true" runOnBuild="true">
|
||||
<file>/ClientSource/Scripts/Core/modernizr-2.6.2.js</file>
|
||||
<file>/ClientSource/Scripts/Core/jquery-1.9.1.js</file>
|
||||
<file>/ClientSource/Scripts/Core/jquery-2.0.0.js</file>
|
||||
<file>/ClientSource/Scripts/Core/jquery.validate.js</file>
|
||||
<file>/ClientSource/Scripts/Core/jquery.validate.unobtrusive.js</file>
|
||||
<file>/ClientSource/Scripts/Core/disco.unobtrusiveValidation.extensions.js</file>
|
||||
<file>/ClientSource/Scripts/Core/jquery-ui-1.10.0.js</file>
|
||||
<file>/ClientSource/Scripts/Core/jquery-ui-1.10.3.js</file>
|
||||
<file>/ClientSource/Scripts/Core/jquery.watermark.js</file>
|
||||
<file>/ClientSource/Scripts/Core/jquery.dataTables.js</file>
|
||||
<file>/ClientSource/Scripts/Core/disco.dataTables.extensions.js</file>
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+53
-47
@@ -1,4 +1,4 @@
|
||||
intellisense.annotate(jQuery, {
|
||||
intellisense.annotate(jQuery, {
|
||||
'ajax': function() {
|
||||
/// <signature>
|
||||
/// <summary>Perform an asynchronous HTTP (Ajax) request.</summary>
|
||||
@@ -21,7 +21,7 @@
|
||||
},
|
||||
'ajaxSetup': function() {
|
||||
/// <signature>
|
||||
/// <summary>Set default values for future Ajax requests.</summary>
|
||||
/// <summary>Set default values for future Ajax requests. Its use is not recommended.</summary>
|
||||
/// <param name="options" type="PlainObject">A set of key/value pairs that configure the default Ajax request. All options are optional.</param>
|
||||
/// </signature>
|
||||
},
|
||||
@@ -125,7 +125,7 @@
|
||||
/// <signature>
|
||||
/// <summary>Load data from the server using a HTTP GET request.</summary>
|
||||
/// <param name="url" type="String">A string containing the URL to which the request is sent.</param>
|
||||
/// <param name="data" type="String">A plain object or string that is sent to the server with the request.</param>
|
||||
/// <param name="data" type="">A plain object or string that is sent to the server with the request.</param>
|
||||
/// <param name="success(data, textStatus, jqXHR)" type="Function">A callback function that is executed if the request succeeds.</param>
|
||||
/// <param name="dataType" type="String">The type of data expected from the server. Default: Intelligent Guess (xml, json, script, or html).</param>
|
||||
/// <returns type="jqXHR" />
|
||||
@@ -250,7 +250,7 @@
|
||||
/// </signature>
|
||||
/// <signature>
|
||||
/// <summary>Translate all items in an array or object to new array of items.</summary>
|
||||
/// <param name="arrayOrObject" type="Object">The Array or Object to translate.</param>
|
||||
/// <param name="arrayOrObject" type="">The Array or Object to translate.</param>
|
||||
/// <param name="callback( value, indexOrKey )" type="Function">The function to process each item against. The first argument to the function is the value; the second argument is the index or key of the array or object property. The function can return any value to add to the array. A returned array will be flattened into the resulting array. Within the function, this refers to the global (window) object.</param>
|
||||
/// <returns type="Array" />
|
||||
/// </signature>
|
||||
@@ -280,12 +280,12 @@
|
||||
'param': function() {
|
||||
/// <signature>
|
||||
/// <summary>Create a serialized representation of an array or object, suitable for use in a URL query string or Ajax request.</summary>
|
||||
/// <param name="obj" type="Object">An array or object to serialize.</param>
|
||||
/// <param name="obj" type="">An array or object to serialize.</param>
|
||||
/// <returns type="String" />
|
||||
/// </signature>
|
||||
/// <signature>
|
||||
/// <summary>Create a serialized representation of an array or object, suitable for use in a URL query string or Ajax request.</summary>
|
||||
/// <param name="obj" type="Object">An array or object to serialize.</param>
|
||||
/// <param name="obj" type="">An array or object to serialize.</param>
|
||||
/// <param name="traditional" type="Boolean">A Boolean indicating whether to perform a traditional "shallow" serialization.</param>
|
||||
/// <returns type="String" />
|
||||
/// </signature>
|
||||
@@ -317,7 +317,7 @@
|
||||
/// <signature>
|
||||
/// <summary>Load data from the server using a HTTP POST request.</summary>
|
||||
/// <param name="url" type="String">A string containing the URL to which the request is sent.</param>
|
||||
/// <param name="data" type="String">A plain object or string that is sent to the server with the request.</param>
|
||||
/// <param name="data" type="">A plain object or string that is sent to the server with the request.</param>
|
||||
/// <param name="success(data, textStatus, jqXHR)" type="Function">A callback function that is executed if the request succeeds.</param>
|
||||
/// <param name="dataType" type="String">The type of data expected from the server. Default: Intelligent Guess (xml, json, script, text, html).</param>
|
||||
/// <returns type="jqXHR" />
|
||||
@@ -420,7 +420,7 @@ intellisense.annotate(_object, {
|
||||
'add': function() {
|
||||
/// <signature>
|
||||
/// <summary>Add a callback or a collection of callbacks to a callback list.</summary>
|
||||
/// <param name="callbacks" type="Array">A function, or array of functions, that are to be added to the callback list.</param>
|
||||
/// <param name="callbacks" type="">A function, or array of functions, that are to be added to the callback list.</param>
|
||||
/// <returns type="Callbacks" />
|
||||
/// </signature>
|
||||
},
|
||||
@@ -473,7 +473,7 @@ intellisense.annotate(_object, {
|
||||
'remove': function() {
|
||||
/// <signature>
|
||||
/// <summary>Remove a callback or a collection of callbacks from a callback list.</summary>
|
||||
/// <param name="callbacks" type="Array">A function, or array of functions, that are to be removed from the callback list.</param>
|
||||
/// <param name="callbacks" type="">A function, or array of functions, that are to be removed from the callback list.</param>
|
||||
/// <returns type="Callbacks" />
|
||||
/// </signature>
|
||||
},
|
||||
@@ -552,7 +552,7 @@ intellisense.annotate(_object, {
|
||||
'progress': function() {
|
||||
/// <signature>
|
||||
/// <summary>Add handlers to be called when the Deferred object generates progress notifications.</summary>
|
||||
/// <param name="progressCallbacks" type="Function">A function, or array of functions, that is called when the Deferred generates progress notifications.</param>
|
||||
/// <param name="progressCallbacks" type="">A function, or array of functions, to be called when the Deferred generates progress notifications.</param>
|
||||
/// <returns type="Deferred" />
|
||||
/// </signature>
|
||||
},
|
||||
@@ -566,7 +566,7 @@ intellisense.annotate(_object, {
|
||||
'reject': function() {
|
||||
/// <signature>
|
||||
/// <summary>Reject a Deferred object and call any failCallbacks with the given args.</summary>
|
||||
/// <param name="args" type="Object">Optional arguments that are passed to the failCallbacks.</param>
|
||||
/// <param name="args" type="Anything">Optional arguments that are passed to the failCallbacks.</param>
|
||||
/// <returns type="Deferred" />
|
||||
/// </signature>
|
||||
},
|
||||
@@ -581,7 +581,7 @@ intellisense.annotate(_object, {
|
||||
'resolve': function() {
|
||||
/// <signature>
|
||||
/// <summary>Resolve a Deferred object and call any doneCallbacks with the given args.</summary>
|
||||
/// <param name="args" type="Object">Optional arguments that are passed to the doneCallbacks.</param>
|
||||
/// <param name="args" type="Anything">Optional arguments that are passed to the doneCallbacks.</param>
|
||||
/// <returns type="Deferred" />
|
||||
/// </signature>
|
||||
},
|
||||
@@ -752,8 +752,8 @@ intellisense.annotate(jQuery.fn, {
|
||||
'after': function() {
|
||||
/// <signature>
|
||||
/// <summary>Insert content, specified by the parameter, after each element in the set of matched elements.</summary>
|
||||
/// <param name="content" type="jQuery">HTML string, DOM element, or jQuery object to insert after each element in the set of matched elements.</param>
|
||||
/// <param name="content" type="jQuery">One or more additional DOM elements, arrays of elements, HTML strings, or jQuery objects to insert after each element in the set of matched elements.</param>
|
||||
/// <param name="content" type="">HTML string, DOM element, or jQuery object to insert after each element in the set of matched elements.</param>
|
||||
/// <param name="content" type="">One or more additional DOM elements, arrays of elements, HTML strings, or jQuery objects to insert after each element in the set of matched elements.</param>
|
||||
/// <returns type="jQuery" />
|
||||
/// </signature>
|
||||
/// <signature>
|
||||
@@ -833,8 +833,8 @@ intellisense.annotate(jQuery.fn, {
|
||||
'append': function() {
|
||||
/// <signature>
|
||||
/// <summary>Insert content, specified by the parameter, to the end of each element in the set of matched elements.</summary>
|
||||
/// <param name="content" type="jQuery">DOM element, HTML string, or jQuery object to insert at the end of each element in the set of matched elements.</param>
|
||||
/// <param name="content" type="jQuery">One or more additional DOM elements, arrays of elements, HTML strings, or jQuery objects to insert at the end of each element in the set of matched elements.</param>
|
||||
/// <param name="content" type="">DOM element, HTML string, or jQuery object to insert at the end of each element in the set of matched elements.</param>
|
||||
/// <param name="content" type="">One or more additional DOM elements, arrays of elements, HTML strings, or jQuery objects to insert at the end of each element in the set of matched elements.</param>
|
||||
/// <returns type="jQuery" />
|
||||
/// </signature>
|
||||
/// <signature>
|
||||
@@ -846,7 +846,7 @@ intellisense.annotate(jQuery.fn, {
|
||||
'appendTo': function() {
|
||||
/// <signature>
|
||||
/// <summary>Insert every element in the set of matched elements to the end of the target.</summary>
|
||||
/// <param name="target" type="jQuery">A selector, element, HTML string, or jQuery object; the matched set of elements will be inserted at the end of the element(s) specified by this parameter.</param>
|
||||
/// <param name="target" type="">A selector, element, HTML string, or jQuery object; the matched set of elements will be inserted at the end of the element(s) specified by this parameter.</param>
|
||||
/// <returns type="jQuery" />
|
||||
/// </signature>
|
||||
},
|
||||
@@ -854,7 +854,7 @@ intellisense.annotate(jQuery.fn, {
|
||||
/// <signature>
|
||||
/// <summary>Set one or more attributes for the set of matched elements.</summary>
|
||||
/// <param name="attributeName" type="String">The name of the attribute to set.</param>
|
||||
/// <param name="value" type="Number">A value to set for the attribute.</param>
|
||||
/// <param name="value" type="">A value to set for the attribute.</param>
|
||||
/// <returns type="jQuery" />
|
||||
/// </signature>
|
||||
/// <signature>
|
||||
@@ -935,8 +935,8 @@ intellisense.annotate(jQuery.fn, {
|
||||
'before': function() {
|
||||
/// <signature>
|
||||
/// <summary>Insert content, specified by the parameter, before each element in the set of matched elements.</summary>
|
||||
/// <param name="content" type="jQuery">HTML string, DOM element, or jQuery object to insert before each element in the set of matched elements.</param>
|
||||
/// <param name="content" type="jQuery">One or more additional DOM elements, arrays of elements, HTML strings, or jQuery objects to insert before each element in the set of matched elements.</param>
|
||||
/// <param name="content" type="">HTML string, DOM element, or jQuery object to insert before each element in the set of matched elements.</param>
|
||||
/// <param name="content" type="">One or more additional DOM elements, arrays of elements, HTML strings, or jQuery objects to insert before each element in the set of matched elements.</param>
|
||||
/// <returns type="jQuery" />
|
||||
/// </signature>
|
||||
/// <signature>
|
||||
@@ -1095,7 +1095,7 @@ intellisense.annotate(jQuery.fn, {
|
||||
/// <signature>
|
||||
/// <summary>Set one or more CSS properties for the set of matched elements.</summary>
|
||||
/// <param name="propertyName" type="String">A CSS property name.</param>
|
||||
/// <param name="value" type="Number">A value to set for the property.</param>
|
||||
/// <param name="value" type="">A value to set for the property.</param>
|
||||
/// <returns type="jQuery" />
|
||||
/// </signature>
|
||||
/// <signature>
|
||||
@@ -1296,14 +1296,14 @@ intellisense.annotate(jQuery.fn, {
|
||||
'fadeTo': function() {
|
||||
/// <signature>
|
||||
/// <summary>Adjust the opacity of the matched elements.</summary>
|
||||
/// <param name="duration" type="Number">A string or number determining how long the animation will run.</param>
|
||||
/// <param name="duration" type="">A string or number determining how long the animation will run.</param>
|
||||
/// <param name="opacity" type="Number">A number between 0 and 1 denoting the target opacity.</param>
|
||||
/// <param name="complete" type="Function">A function to call once the animation is complete.</param>
|
||||
/// <returns type="jQuery" />
|
||||
/// </signature>
|
||||
/// <signature>
|
||||
/// <summary>Adjust the opacity of the matched elements.</summary>
|
||||
/// <param name="duration" type="Number">A string or number determining how long the animation will run.</param>
|
||||
/// <param name="duration" type="">A string or number determining how long the animation will run.</param>
|
||||
/// <param name="opacity" type="Number">A number between 0 and 1 denoting the target opacity.</param>
|
||||
/// <param name="easing" type="String">A string indicating which easing function to use for the transition.</param>
|
||||
/// <param name="complete" type="Function">A function to call once the animation is complete.</param>
|
||||
@@ -1433,6 +1433,10 @@ intellisense.annotate(jQuery.fn, {
|
||||
/// <summary>Select all elements at an index greater than index within the matched set.</summary>
|
||||
/// <param name="index" type="Number">Zero-based index.</param>
|
||||
/// </signature>
|
||||
/// <signature>
|
||||
/// <summary>Select all elements at an index greater than index within the matched set.</summary>
|
||||
/// <param name="-index" type="Number">Zero-based index, counting backwards from the last element.</param>
|
||||
/// </signature>
|
||||
},
|
||||
'has': function() {
|
||||
/// <signature>
|
||||
@@ -1459,7 +1463,7 @@ intellisense.annotate(jQuery.fn, {
|
||||
'height': function() {
|
||||
/// <signature>
|
||||
/// <summary>Set the CSS height of every matched element.</summary>
|
||||
/// <param name="value" type="Number">An integer representing the number of pixels, or an integer with an optional unit of measure appended (as a string).</param>
|
||||
/// <param name="value" type="">An integer representing the number of pixels, or an integer with an optional unit of measure appended (as a string).</param>
|
||||
/// <returns type="jQuery" />
|
||||
/// </signature>
|
||||
/// <signature>
|
||||
@@ -1502,7 +1506,7 @@ intellisense.annotate(jQuery.fn, {
|
||||
'html': function() {
|
||||
/// <signature>
|
||||
/// <summary>Set the HTML contents of each element in the set of matched elements.</summary>
|
||||
/// <param name="htmlString" type="String">A string of HTML to set as the content of each matched element.</param>
|
||||
/// <param name="htmlString" type="htmlString">A string of HTML to set as the content of each matched element.</param>
|
||||
/// <returns type="jQuery" />
|
||||
/// </signature>
|
||||
/// <signature>
|
||||
@@ -1528,7 +1532,7 @@ intellisense.annotate(jQuery.fn, {
|
||||
/// </signature>
|
||||
/// <signature>
|
||||
/// <summary>Search for a given element from among the matched elements.</summary>
|
||||
/// <param name="element" type="jQuery">The DOM element or first element within the jQuery object to look for.</param>
|
||||
/// <param name="element" type="">The DOM element or first element within the jQuery object to look for.</param>
|
||||
/// <returns type="Number" />
|
||||
/// </signature>
|
||||
},
|
||||
@@ -1536,7 +1540,7 @@ intellisense.annotate(jQuery.fn, {
|
||||
/// <signature>
|
||||
/// <summary>Accepts a string containing a CSS selector which is then used to match a set of elements.</summary>
|
||||
/// <param name="selector" type="String">A string containing a selector expression</param>
|
||||
/// <param name="context" type="jQuery">A DOM Element, Document, or jQuery to use as context</param>
|
||||
/// <param name="context" type="">A DOM Element, Document, or jQuery to use as context</param>
|
||||
/// <returns type="jQuery" />
|
||||
/// </signature>
|
||||
/// <signature>
|
||||
@@ -1574,14 +1578,14 @@ intellisense.annotate(jQuery.fn, {
|
||||
'insertAfter': function() {
|
||||
/// <signature>
|
||||
/// <summary>Insert every element in the set of matched elements after the target.</summary>
|
||||
/// <param name="target" type="jQuery">A selector, element, HTML string, or jQuery object; the matched set of elements will be inserted after the element(s) specified by this parameter.</param>
|
||||
/// <param name="target" type="">A selector, element, HTML string, or jQuery object; the matched set of elements will be inserted after the element(s) specified by this parameter.</param>
|
||||
/// <returns type="jQuery" />
|
||||
/// </signature>
|
||||
},
|
||||
'insertBefore': function() {
|
||||
/// <signature>
|
||||
/// <summary>Insert every element in the set of matched elements before the target.</summary>
|
||||
/// <param name="target" type="jQuery">A selector, element, HTML string, or jQuery object; the matched set of elements will be inserted before the element(s) specified by this parameter.</param>
|
||||
/// <param name="target" type="">A selector, element, HTML string, or jQuery object; the matched set of elements will be inserted before the element(s) specified by this parameter.</param>
|
||||
/// <returns type="jQuery" />
|
||||
/// </signature>
|
||||
},
|
||||
@@ -1707,6 +1711,10 @@ intellisense.annotate(jQuery.fn, {
|
||||
/// <summary>Select all elements at an index less than index within the matched set.</summary>
|
||||
/// <param name="index" type="Number">Zero-based index.</param>
|
||||
/// </signature>
|
||||
/// <signature>
|
||||
/// <summary>Select all elements at an index less than index within the matched set.</summary>
|
||||
/// <param name="-index" type="Number">Zero-based index, counting backwards from the last element.</param>
|
||||
/// </signature>
|
||||
},
|
||||
'map': function() {
|
||||
/// <signature>
|
||||
@@ -2035,8 +2043,8 @@ intellisense.annotate(jQuery.fn, {
|
||||
'prepend': function() {
|
||||
/// <signature>
|
||||
/// <summary>Insert content, specified by the parameter, to the beginning of each element in the set of matched elements.</summary>
|
||||
/// <param name="content" type="jQuery">DOM element, array of elements, HTML string, or jQuery object to insert at the beginning of each element in the set of matched elements.</param>
|
||||
/// <param name="content" type="jQuery">One or more additional DOM elements, arrays of elements, HTML strings, or jQuery objects to insert at the beginning of each element in the set of matched elements.</param>
|
||||
/// <param name="content" type="">DOM element, array of elements, HTML string, or jQuery object to insert at the beginning of each element in the set of matched elements.</param>
|
||||
/// <param name="content" type="">One or more additional DOM elements, arrays of elements, HTML strings, or jQuery objects to insert at the beginning of each element in the set of matched elements.</param>
|
||||
/// <returns type="jQuery" />
|
||||
/// </signature>
|
||||
/// <signature>
|
||||
@@ -2048,7 +2056,7 @@ intellisense.annotate(jQuery.fn, {
|
||||
'prependTo': function() {
|
||||
/// <signature>
|
||||
/// <summary>Insert every element in the set of matched elements to the beginning of the target.</summary>
|
||||
/// <param name="target" type="jQuery">A selector, element, HTML string, or jQuery object; the matched set of elements will be inserted at the beginning of the element(s) specified by this parameter.</param>
|
||||
/// <param name="target" type="">A selector, element, HTML string, or jQuery object; the matched set of elements will be inserted at the beginning of the element(s) specified by this parameter.</param>
|
||||
/// <returns type="jQuery" />
|
||||
/// </signature>
|
||||
},
|
||||
@@ -2092,7 +2100,7 @@ intellisense.annotate(jQuery.fn, {
|
||||
/// <signature>
|
||||
/// <summary>Set one or more properties for the set of matched elements.</summary>
|
||||
/// <param name="propertyName" type="String">The name of the property to set.</param>
|
||||
/// <param name="value" type="Boolean">A value to set for the property.</param>
|
||||
/// <param name="value" type="">A value to set for the property.</param>
|
||||
/// <returns type="jQuery" />
|
||||
/// </signature>
|
||||
/// <signature>
|
||||
@@ -2179,7 +2187,7 @@ intellisense.annotate(jQuery.fn, {
|
||||
/// </signature>
|
||||
/// <signature>
|
||||
/// <summary>Remove a previously-stored piece of data.</summary>
|
||||
/// <param name="list" type="String">An array or space-separated string naming the pieces of data to delete.</param>
|
||||
/// <param name="list" type="">An array or space-separated string naming the pieces of data to delete.</param>
|
||||
/// <returns type="jQuery" />
|
||||
/// </signature>
|
||||
},
|
||||
@@ -2193,14 +2201,14 @@ intellisense.annotate(jQuery.fn, {
|
||||
'replaceAll': function() {
|
||||
/// <signature>
|
||||
/// <summary>Replace each target element with the set of matched elements.</summary>
|
||||
/// <param name="target" type="String">A selector expression indicating which element(s) to replace.</param>
|
||||
/// <param name="target" type="">A selector string, jQuery object, or DOM element reference indicating which element(s) to replace.</param>
|
||||
/// <returns type="jQuery" />
|
||||
/// </signature>
|
||||
},
|
||||
'replaceWith': function() {
|
||||
/// <signature>
|
||||
/// <summary>Replace each element in the set of matched elements with the provided new content and return the set of elements that was removed.</summary>
|
||||
/// <param name="newContent" type="jQuery">The content to insert. May be an HTML string, DOM element, or jQuery object.</param>
|
||||
/// <param name="newContent" type="">The content to insert. May be an HTML string, DOM element, or jQuery object.</param>
|
||||
/// <returns type="jQuery" />
|
||||
/// </signature>
|
||||
/// <signature>
|
||||
@@ -2226,10 +2234,7 @@ intellisense.annotate(jQuery.fn, {
|
||||
/// </signature>
|
||||
},
|
||||
'root': function() {
|
||||
/// <signature>
|
||||
/// <summary>Selects the element that is the root of the document.</summary>
|
||||
/// <param name="index" type="String">The index of each child to match, starting with 1, the string even or odd, or an equation ( eg. :nth-last-child(even), :nth-last-child(4n) )</param>
|
||||
/// </signature>
|
||||
/// <summary>Selects the element that is the root of the document.</summary>
|
||||
},
|
||||
'scroll': function() {
|
||||
/// <signature>
|
||||
@@ -2275,7 +2280,7 @@ intellisense.annotate(jQuery.fn, {
|
||||
/// <summary>Selects all elements that are selected.</summary>
|
||||
},
|
||||
'selector': function() {
|
||||
/// <summary>A selector representing selector originally passed to jQuery().</summary>
|
||||
/// <summary>A selector representing selector passed to jQuery(), if any, when creating the original set.</summary>
|
||||
/// <returns type="String" />
|
||||
},
|
||||
'serialize': function() {
|
||||
@@ -2485,12 +2490,13 @@ intellisense.annotate(jQuery.fn, {
|
||||
/// <signature>
|
||||
/// <summary>Execute all handlers and behaviors attached to the matched elements for the given event type.</summary>
|
||||
/// <param name="eventType" type="String">A string containing a JavaScript event type, such as click or submit.</param>
|
||||
/// <param name="extraParameters" type="PlainObject">Additional parameters to pass along to the event handler.</param>
|
||||
/// <param name="extraParameters" type="">Additional parameters to pass along to the event handler.</param>
|
||||
/// <returns type="jQuery" />
|
||||
/// </signature>
|
||||
/// <signature>
|
||||
/// <summary>Execute all handlers and behaviors attached to the matched elements for the given event type.</summary>
|
||||
/// <param name="event" type="Event">A jQuery.Event object.</param>
|
||||
/// <param name="extraParameters" type="">Additional parameters to pass along to the event handler.</param>
|
||||
/// <returns type="jQuery" />
|
||||
/// </signature>
|
||||
},
|
||||
@@ -2567,7 +2573,7 @@ intellisense.annotate(jQuery.fn, {
|
||||
'val': function() {
|
||||
/// <signature>
|
||||
/// <summary>Set the value of each element in the set of matched elements.</summary>
|
||||
/// <param name="value" type="Array">A string of text or an array of strings corresponding to the value of each matched element to set as selected/checked.</param>
|
||||
/// <param name="value" type="">A string of text or an array of strings corresponding to the value of each matched element to set as selected/checked.</param>
|
||||
/// <returns type="jQuery" />
|
||||
/// </signature>
|
||||
/// <signature>
|
||||
@@ -2582,7 +2588,7 @@ intellisense.annotate(jQuery.fn, {
|
||||
'width': function() {
|
||||
/// <signature>
|
||||
/// <summary>Set the CSS width of each element in the set of matched elements.</summary>
|
||||
/// <param name="value" type="Number">An integer representing the number of pixels, or an integer along with an optional unit of measure appended (as a string).</param>
|
||||
/// <param name="value" type="">An integer representing the number of pixels, or an integer along with an optional unit of measure appended (as a string).</param>
|
||||
/// <returns type="jQuery" />
|
||||
/// </signature>
|
||||
/// <signature>
|
||||
@@ -2594,7 +2600,7 @@ intellisense.annotate(jQuery.fn, {
|
||||
'wrap': function() {
|
||||
/// <signature>
|
||||
/// <summary>Wrap an HTML structure around each element in the set of matched elements.</summary>
|
||||
/// <param name="wrappingElement" type="jQuery">An HTML snippet, selector expression, jQuery object, or DOM element specifying the structure to wrap around the matched elements.</param>
|
||||
/// <param name="wrappingElement" type="">A selector, element, HTML string, or jQuery object specifying the structure to wrap around the matched elements.</param>
|
||||
/// <returns type="jQuery" />
|
||||
/// </signature>
|
||||
/// <signature>
|
||||
@@ -2606,7 +2612,7 @@ intellisense.annotate(jQuery.fn, {
|
||||
'wrapAll': function() {
|
||||
/// <signature>
|
||||
/// <summary>Wrap an HTML structure around all elements in the set of matched elements.</summary>
|
||||
/// <param name="wrappingElement" type="jQuery">An HTML snippet, selector expression, jQuery object, or DOM element specifying the structure to wrap around the matched elements.</param>
|
||||
/// <param name="wrappingElement" type="">A selector, element, HTML string, or jQuery object specifying the structure to wrap around the matched elements.</param>
|
||||
/// <returns type="jQuery" />
|
||||
/// </signature>
|
||||
},
|
||||
@@ -2629,7 +2635,7 @@ intellisense.annotate(window, {
|
||||
/// <signature>
|
||||
/// <summary>Accepts a string containing a CSS selector which is then used to match a set of elements.</summary>
|
||||
/// <param name="selector" type="String">A string containing a selector expression</param>
|
||||
/// <param name="context" type="jQuery">A DOM Element, Document, or jQuery to use as context</param>
|
||||
/// <param name="context" type="">A DOM Element, Document, or jQuery to use as context</param>
|
||||
/// <returns type="jQuery" />
|
||||
/// </signature>
|
||||
/// <signature>
|
||||
+3619
-4461
File diff suppressed because it is too large
Load Diff
+8224
-8136
File diff suppressed because it is too large
Load Diff
-14912
File diff suppressed because it is too large
Load Diff
@@ -4,7 +4,7 @@
|
||||
* intended to be used only for design-time IntelliSense. Please use the
|
||||
* standard jQuery library for all production use.
|
||||
*
|
||||
* Comment version: 1.11.0
|
||||
* Comment version: 1.11.1
|
||||
*/
|
||||
|
||||
/*
|
||||
@@ -15,7 +15,7 @@
|
||||
* for informational purposes only and are not the license terms under
|
||||
* which Microsoft distributed this file.
|
||||
*
|
||||
* jQuery Validation Plugin - v1.11.0 - 2/4/2013
|
||||
* jQuery Validation Plugin - v1.11.1 - 2/4/2013
|
||||
* https://github.com/jzaefferer/jquery-validation
|
||||
* Copyright (c) 2013 Jörn Zaefferer; Licensed MIT
|
||||
*
|
||||
|
||||
+123
-99
@@ -1,6 +1,13 @@
|
||||
/*! jQuery Validation Plugin - v1.11.0 - 2/4/2013
|
||||
* https://github.com/jzaefferer/jquery-validation
|
||||
* Copyright (c) 2013 Jörn Zaefferer; Licensed MIT */
|
||||
/*!
|
||||
* jQuery Validation Plugin 1.11.1
|
||||
*
|
||||
* http://bassistance.de/jquery-plugins/jquery-plugin-validation/
|
||||
* http://docs.jquery.com/Plugins/Validation
|
||||
*
|
||||
* Copyright 2013 Jörn Zaefferer
|
||||
* Released under the MIT license:
|
||||
* http://www.opensource.org/licenses/mit-license.php
|
||||
*/
|
||||
|
||||
(function($) {
|
||||
|
||||
@@ -38,6 +45,11 @@ $.extend($.fn, {
|
||||
if ( $(event.target).hasClass("cancel") ) {
|
||||
validator.cancelSubmit = true;
|
||||
}
|
||||
|
||||
// allow suppressing validation by adding the html5 formnovalidate attribute to the submit button
|
||||
if ( $(event.target).attr("formnovalidate") !== undefined ) {
|
||||
validator.cancelSubmit = true;
|
||||
}
|
||||
});
|
||||
|
||||
// validate the form on submit
|
||||
@@ -51,7 +63,7 @@ $.extend($.fn, {
|
||||
if ( validator.settings.submitHandler ) {
|
||||
if ( validator.submitButton ) {
|
||||
// insert a hidden input as a replacement for the missing submit button
|
||||
hidden = $("<input type='hidden'/>").attr("name", validator.submitButton.name).val(validator.submitButton.value).appendTo(validator.currentForm);
|
||||
hidden = $("<input type='hidden'/>").attr("name", validator.submitButton.name).val( $(validator.submitButton).val() ).appendTo(validator.currentForm);
|
||||
}
|
||||
validator.settings.submitHandler.call( validator, validator.currentForm, event );
|
||||
if ( validator.submitButton ) {
|
||||
@@ -91,7 +103,7 @@ $.extend($.fn, {
|
||||
var valid = true;
|
||||
var validator = $(this[0].form).validate();
|
||||
this.each(function() {
|
||||
valid &= validator.element(this);
|
||||
valid = valid && validator.element(this);
|
||||
});
|
||||
return valid;
|
||||
}
|
||||
@@ -117,6 +129,8 @@ $.extend($.fn, {
|
||||
switch(command) {
|
||||
case "add":
|
||||
$.extend(existingRules, $.validator.normalizeRule(argument));
|
||||
// remove messages from rules, but allow them to be set separetely
|
||||
delete existingRules.messages;
|
||||
staticRules[element.name] = existingRules;
|
||||
if ( argument.messages ) {
|
||||
settings.messages[element.name] = $.extend( settings.messages[element.name], argument.messages );
|
||||
@@ -159,11 +173,11 @@ $.extend($.fn, {
|
||||
// Custom selectors
|
||||
$.extend($.expr[":"], {
|
||||
// http://docs.jquery.com/Plugins/Validation/blank
|
||||
blank: function( a ) { return !$.trim("" + a.value); },
|
||||
blank: function( a ) { return !$.trim("" + $(a).val()); },
|
||||
// http://docs.jquery.com/Plugins/Validation/filled
|
||||
filled: function( a ) { return !!$.trim("" + a.value); },
|
||||
filled: function( a ) { return !!$.trim("" + $(a).val()); },
|
||||
// http://docs.jquery.com/Plugins/Validation/unchecked
|
||||
unchecked: function( a ) { return !a.checked; }
|
||||
unchecked: function( a ) { return !$(a).prop("checked"); }
|
||||
});
|
||||
|
||||
// constructor for validator
|
||||
@@ -553,7 +567,7 @@ $.extend($.validator, {
|
||||
}
|
||||
} catch(e) {
|
||||
if ( this.settings.debug && window.console ) {
|
||||
console.log( "Exception occured when checking element " + element.id + ", check the '" + rule.method + "' method.", e );
|
||||
console.log( "Exception occurred when checking element " + element.id + ", check the '" + rule.method + "' method.", e );
|
||||
}
|
||||
throw e;
|
||||
}
|
||||
@@ -826,6 +840,7 @@ $.extend($.validator, {
|
||||
attributeRules: function( element ) {
|
||||
var rules = {};
|
||||
var $element = $(element);
|
||||
var type = $element[0].getAttribute("type");
|
||||
|
||||
for (var method in $.validator.methods) {
|
||||
var value;
|
||||
@@ -844,9 +859,17 @@ $.extend($.validator, {
|
||||
value = $element.attr(method);
|
||||
}
|
||||
|
||||
// convert the value to a number for number inputs, and for text for backwards compability
|
||||
// allows type="date" and others to be compared as strings
|
||||
if ( /min|max/.test( method ) && ( type === null || /number|range|text/.test( type ) ) ) {
|
||||
value = Number(value);
|
||||
}
|
||||
|
||||
if ( value ) {
|
||||
rules[method] = value;
|
||||
} else if ( $element[0].getAttribute("type") === method ) {
|
||||
} else if ( type === method && type !== 'range' ) {
|
||||
// exception: the jquery validate 'range' method
|
||||
// does not test for the html5 'range' type
|
||||
rules[method] = true;
|
||||
}
|
||||
}
|
||||
@@ -917,7 +940,7 @@ $.extend($.validator, {
|
||||
rules[this] = Number(rules[this]);
|
||||
}
|
||||
});
|
||||
$.each(['rangelength'], function() {
|
||||
$.each(['rangelength', 'range'], function() {
|
||||
var parts;
|
||||
if ( rules[this] ) {
|
||||
if ( $.isArray(rules[this]) ) {
|
||||
@@ -986,93 +1009,6 @@ $.extend($.validator, {
|
||||
return $.trim(value).length > 0;
|
||||
},
|
||||
|
||||
// http://docs.jquery.com/Plugins/Validation/Methods/remote
|
||||
remote: function( value, element, param ) {
|
||||
if ( this.optional(element) ) {
|
||||
return "dependency-mismatch";
|
||||
}
|
||||
|
||||
var previous = this.previousValue(element);
|
||||
if (!this.settings.messages[element.name] ) {
|
||||
this.settings.messages[element.name] = {};
|
||||
}
|
||||
previous.originalMessage = this.settings.messages[element.name].remote;
|
||||
this.settings.messages[element.name].remote = previous.message;
|
||||
|
||||
param = typeof param === "string" && {url:param} || param;
|
||||
|
||||
if ( previous.old === value ) {
|
||||
return previous.valid;
|
||||
}
|
||||
|
||||
previous.old = value;
|
||||
var validator = this;
|
||||
this.startRequest(element);
|
||||
var data = {};
|
||||
data[element.name] = value;
|
||||
$.ajax($.extend(true, {
|
||||
url: param,
|
||||
mode: "abort",
|
||||
port: "validate" + element.name,
|
||||
dataType: "json",
|
||||
data: data,
|
||||
success: function( response ) {
|
||||
validator.settings.messages[element.name].remote = previous.originalMessage;
|
||||
var valid = response === true || response === "true";
|
||||
if ( valid ) {
|
||||
var submitted = validator.formSubmitted;
|
||||
validator.prepareElement(element);
|
||||
validator.formSubmitted = submitted;
|
||||
validator.successList.push(element);
|
||||
delete validator.invalid[element.name];
|
||||
validator.showErrors();
|
||||
} else {
|
||||
var errors = {};
|
||||
var message = response || validator.defaultMessage( element, "remote" );
|
||||
errors[element.name] = previous.message = $.isFunction(message) ? message(value) : message;
|
||||
validator.invalid[element.name] = true;
|
||||
validator.showErrors(errors);
|
||||
}
|
||||
previous.valid = valid;
|
||||
validator.stopRequest(element, valid);
|
||||
}
|
||||
}, param));
|
||||
return "pending";
|
||||
},
|
||||
|
||||
// http://docs.jquery.com/Plugins/Validation/Methods/minlength
|
||||
minlength: function( value, element, param ) {
|
||||
var length = $.isArray( value ) ? value.length : this.getLength($.trim(value), element);
|
||||
return this.optional(element) || length >= param;
|
||||
},
|
||||
|
||||
// http://docs.jquery.com/Plugins/Validation/Methods/maxlength
|
||||
maxlength: function( value, element, param ) {
|
||||
var length = $.isArray( value ) ? value.length : this.getLength($.trim(value), element);
|
||||
return this.optional(element) || length <= param;
|
||||
},
|
||||
|
||||
// http://docs.jquery.com/Plugins/Validation/Methods/rangelength
|
||||
rangelength: function( value, element, param ) {
|
||||
var length = $.isArray( value ) ? value.length : this.getLength($.trim(value), element);
|
||||
return this.optional(element) || ( length >= param[0] && length <= param[1] );
|
||||
},
|
||||
|
||||
// http://docs.jquery.com/Plugins/Validation/Methods/min
|
||||
min: function( value, element, param ) {
|
||||
return this.optional(element) || value >= param;
|
||||
},
|
||||
|
||||
// http://docs.jquery.com/Plugins/Validation/Methods/max
|
||||
max: function( value, element, param ) {
|
||||
return this.optional(element) || value <= param;
|
||||
},
|
||||
|
||||
// http://docs.jquery.com/Plugins/Validation/Methods/range
|
||||
range: function( value, element, param ) {
|
||||
return this.optional(element) || ( value >= param[0] && value <= param[1] );
|
||||
},
|
||||
|
||||
// http://docs.jquery.com/Plugins/Validation/Methods/email
|
||||
email: function( value, element ) {
|
||||
// contributed by Scott Gonzalez: http://projects.scottsplayground.com/email_address_validation/
|
||||
@@ -1136,6 +1072,39 @@ $.extend($.validator, {
|
||||
return (nCheck % 10) === 0;
|
||||
},
|
||||
|
||||
// http://docs.jquery.com/Plugins/Validation/Methods/minlength
|
||||
minlength: function( value, element, param ) {
|
||||
var length = $.isArray( value ) ? value.length : this.getLength($.trim(value), element);
|
||||
return this.optional(element) || length >= param;
|
||||
},
|
||||
|
||||
// http://docs.jquery.com/Plugins/Validation/Methods/maxlength
|
||||
maxlength: function( value, element, param ) {
|
||||
var length = $.isArray( value ) ? value.length : this.getLength($.trim(value), element);
|
||||
return this.optional(element) || length <= param;
|
||||
},
|
||||
|
||||
// http://docs.jquery.com/Plugins/Validation/Methods/rangelength
|
||||
rangelength: function( value, element, param ) {
|
||||
var length = $.isArray( value ) ? value.length : this.getLength($.trim(value), element);
|
||||
return this.optional(element) || ( length >= param[0] && length <= param[1] );
|
||||
},
|
||||
|
||||
// http://docs.jquery.com/Plugins/Validation/Methods/min
|
||||
min: function( value, element, param ) {
|
||||
return this.optional(element) || value >= param;
|
||||
},
|
||||
|
||||
// http://docs.jquery.com/Plugins/Validation/Methods/max
|
||||
max: function( value, element, param ) {
|
||||
return this.optional(element) || value <= param;
|
||||
},
|
||||
|
||||
// http://docs.jquery.com/Plugins/Validation/Methods/range
|
||||
range: function( value, element, param ) {
|
||||
return this.optional(element) || ( value >= param[0] && value <= param[1] );
|
||||
},
|
||||
|
||||
// http://docs.jquery.com/Plugins/Validation/Methods/equalTo
|
||||
equalTo: function( value, element, param ) {
|
||||
// bind to the blur event of the target in order to revalidate whenever the target field is updated
|
||||
@@ -1147,6 +1116,60 @@ $.extend($.validator, {
|
||||
});
|
||||
}
|
||||
return value === target.val();
|
||||
},
|
||||
|
||||
// http://docs.jquery.com/Plugins/Validation/Methods/remote
|
||||
remote: function( value, element, param ) {
|
||||
if ( this.optional(element) ) {
|
||||
return "dependency-mismatch";
|
||||
}
|
||||
|
||||
var previous = this.previousValue(element);
|
||||
if (!this.settings.messages[element.name] ) {
|
||||
this.settings.messages[element.name] = {};
|
||||
}
|
||||
previous.originalMessage = this.settings.messages[element.name].remote;
|
||||
this.settings.messages[element.name].remote = previous.message;
|
||||
|
||||
param = typeof param === "string" && {url:param} || param;
|
||||
|
||||
if ( previous.old === value ) {
|
||||
return previous.valid;
|
||||
}
|
||||
|
||||
previous.old = value;
|
||||
var validator = this;
|
||||
this.startRequest(element);
|
||||
var data = {};
|
||||
data[element.name] = value;
|
||||
$.ajax($.extend(true, {
|
||||
url: param,
|
||||
mode: "abort",
|
||||
port: "validate" + element.name,
|
||||
dataType: "json",
|
||||
data: data,
|
||||
success: function( response ) {
|
||||
validator.settings.messages[element.name].remote = previous.originalMessage;
|
||||
var valid = response === true || response === "true";
|
||||
if ( valid ) {
|
||||
var submitted = validator.formSubmitted;
|
||||
validator.prepareElement(element);
|
||||
validator.formSubmitted = submitted;
|
||||
validator.successList.push(element);
|
||||
delete validator.invalid[element.name];
|
||||
validator.showErrors();
|
||||
} else {
|
||||
var errors = {};
|
||||
var message = response || validator.defaultMessage( element, "remote" );
|
||||
errors[element.name] = previous.message = $.isFunction(message) ? message(value) : message;
|
||||
validator.invalid[element.name] = true;
|
||||
validator.showErrors(errors);
|
||||
}
|
||||
previous.valid = valid;
|
||||
validator.stopRequest(element, valid);
|
||||
}
|
||||
}, param));
|
||||
return "pending";
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1184,7 +1207,8 @@ $.format = $.validator.format;
|
||||
if ( pendingRequests[port] ) {
|
||||
pendingRequests[port].abort();
|
||||
}
|
||||
return (pendingRequests[port] = ajax.apply(this, arguments));
|
||||
pendingRequests[port] = ajax.apply(this, arguments);
|
||||
return pendingRequests[port];
|
||||
}
|
||||
return ajax.apply(this, arguments);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user