alecpl
2011-08-22 3ef524d806caf990d6c7c3f64020af53545e849a
- Prevent from form submit with Enter key in file input fields in Internet Explorer


1 files modified
4 ■■■■ changed files
program/js/app.js 4 ●●●● patch | view | raw | blame | history
program/js/app.js
@@ -402,6 +402,10 @@
        break;
      }
    // prevent from form submit with Enter key in file input fields
    if (bw.ie)
      $('input[type=file]').keydown(function(e) { if (e.keyCode == '13') e.preventDefault(); });
    // flag object as complete
    this.loaded = true;