update jquery to latest 1.4.4

This commit is contained in:
Reinier Balt 2010-11-19 18:42:59 +01:00
parent 145c9105dd
commit 77e2ff0751
11 changed files with 377 additions and 356 deletions

View file

@ -1,6 +1,6 @@
/*!
* jQuery Form Plugin
* version: 2.47 (04-SEP-2010)
* version: 2.49 (18-OCT-2010)
* @requires jQuery v1.3.2 or later
*
* Examples and documentation at: http://malsup.com/jquery/form/
@ -18,11 +18,11 @@
to bind your own submit handler to the form. For example,
$(document).ready(function() {
$('#myForm').bind('submit', function() {
$('#myForm').bind('submit', function(e) {
e.preventDefault(); // <-- important
$(this).ajaxSubmit({
target: '#output'
});
return false; // <-- important!
});
});
@ -366,9 +366,13 @@ $.fn.ajaxSubmit = function(options) {
else if (scr) {
// account for browsers injecting pre around json response
var pre = doc.getElementsByTagName('pre')[0];
var b = doc.getElementsByTagName('body')[0];
if (pre) {
xhr.responseText = pre.innerHTML;
}
else if (b) {
xhr.responseText = b.innerHTML;
}
}
}
else if (s.dataType == 'xml' && !xhr.responseXML && xhr.responseText != null) {
@ -517,7 +521,7 @@ $.fn.formToArray = function(semantic) {
return a;
}
var i,j,n,v,el;
var i,j,n,v,el,max,jmax;
for(i=0, max=els.length; i < max; i++) {
el = els[i];
n = el.name;