Skip to content

Commit 325e608

Browse files
author
Neeraj Singh
committed
blank lines and indentation
1 parent 8fe10cc commit 325e608

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/rails.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@
204204
if (rails.blankInputs(form, 'input[name][required]') && rails.fire(form, 'ajax:aborted:required')) {
205205
return !remote;
206206
}
207+
207208
if (rails.nonBlankInputs(form, 'input:file')) {
208209
return rails.fire(form, 'ajax:aborted:file');
209210
}
@@ -223,9 +224,13 @@
223224

224225
$('form input[type=submit], form input[type=image], form button[type=submit], form button:not([type])').live('click.rails', function() {
225226
var button = $(this);
227+
226228
if (!rails.allowAction(button)) return rails.stopEverything(e);
229+
227230
// register the pressed submit button
228-
var name = button.attr('name'), data = name ? {name:name, value:button.val()} : null;
231+
var name = button.attr('name'),
232+
data = name ? {name:name, value:button.val()} : null;
233+
229234
button.closest('form').data('ujs:submit-button', data);
230235
});
231236

0 commit comments

Comments
 (0)