Skip to content

Commit 358b19d

Browse files
committed
Do not crash the test suite if the form does not have an action attribute.
1 parent 0c1aa10 commit 358b19d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/public/test/settings.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ $(document).bind('submit', function(e) {
4747
iframe = $('<iframe name="' + name + '" />'),
4848
targetInput = '<input name="_target" value="' + form.attr('target') + '" type="hidden" />';
4949

50-
if (action.indexOf('iframe') < 0) form.attr('action', action + '?iframe=true')
50+
if (action && action.indexOf('iframe') < 0) form.attr('action', action + '?iframe=true')
5151
form.attr('target', name).append(targetInput);
5252
$('#qunit-fixture').append(iframe);
5353
$.event.trigger('iframe:loading', form);

0 commit comments

Comments
 (0)