Skip to content

Commit 3e685f6

Browse files
committed
Fixed syntax error being thrown by Chrome.
1 parent 6ca0c8f commit 3e685f6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

jquery.maxsubmit.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Copyright 2013-2014 Academe Computing Ltd
33
* Released under the MIT license
44
* Author: Jason Judge <[email protected]>
5-
* Version: 1.1.0
5+
* Version: 1.1.1
66
*/
77
/**
88
* jquery.maxsubmit.js
@@ -41,7 +41,8 @@
4141
// The function that will display the confirm message.
4242
// Replace this with something fancy such as jquery.ui if you wish.
4343

44-
confirm_display: function(form_count = '') {
44+
confirm_display: function(form_count) {
45+
if (typeof(form_count) === 'undefined') form_count = '';
4546
return confirm(
4647
settings
4748
.max_exceeded_message

0 commit comments

Comments
 (0)