Permalink
Browse files

Disable form elements when form falls back to regular submit for file…

…-fields. Fixes #231.
  • Loading branch information...
1 parent 1e18432 commit cde5d979a22bb15aefc1a9b23f1cda3bcd6a141c @JangoSteve JangoSteve committed Aug 14, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/rails.js
View
@@ -355,6 +355,7 @@
if (remote) {
if (nonBlankFileInputs) {
+ setTimeout(function(){ rails.disableFormElements(form); }, 13);
return rails.fire(form, 'ajax:aborted:file', [nonBlankFileInputs]);
}

0 comments on commit cde5d97

Please sign in to comment.