vendor/assets/javascripts/jquery.iframe-transport.js in remotipart-1.2.1 vs vendor/assets/javascripts/jquery.iframe-transport.js in remotipart-1.3.0
- old
+ new
@@ -113,10 +113,13 @@
// This function gets called after a successful submission or an abortion
// and should revert all changes made to the page to enable the
// submission via this transport.
function cleanUp() {
- markers.prop('disabled', false);
+ markers.each(function(i){
+ $(this).replaceWith(files[i]);
+ markers.splice(i, 1);
+ });
form.remove();
iframe.bind("load", function() { iframe.remove(); });
iframe.attr("src", "javascript:false;");
}