File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 1
1
/*!
2
2
* jQuery Form Plugin
3
- * version: 3.42 .0-2013.09.02
3
+ * version: 3.43 .0-2013.09.03
4
4
* Requires jQuery v1.5 or later
5
5
* Copyright (c) 2013 M. Alsup
6
6
* Examples and documentation at: http://malsup.com/jquery/form/
@@ -539,11 +539,11 @@ $.fn.ajaxSubmit = function(options) {
539
539
if ( ! s . iframeTarget ) {
540
540
// add iframe to doc and submit the form
541
541
$io . appendTo ( 'body' ) ;
542
- if ( io . attachEvent )
543
- io . attachEvent ( 'onload' , cb ) ;
544
- else
545
- io . addEventListener ( 'load' , cb , false ) ;
546
542
}
543
+ if ( io . attachEvent )
544
+ io . attachEvent ( 'onload' , cb ) ;
545
+ else
546
+ io . addEventListener ( 'load' , cb , false ) ;
547
547
setTimeout ( checkState , 15 ) ;
548
548
549
549
try {
@@ -729,6 +729,8 @@ $.fn.ajaxSubmit = function(options) {
729
729
setTimeout ( function ( ) {
730
730
if ( ! s . iframeTarget )
731
731
$io . remove ( ) ;
732
+ else //adding else to clean up existing iframe response.
733
+ $io . attr ( 'src' , s . iframeSrc ) ;
732
734
xhr . responseXML = null ;
733
735
} , 100 ) ;
734
736
}
You can’t perform that action at this time.
0 commit comments