浏览代码

#42: Remove submit button from example

nghuuphuoc 11 年之前
父节点
当前提交
cea5359101
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      demo/submitHandler.html

+ 1 - 1
demo/submitHandler.html

@@ -66,7 +66,7 @@
                 invalid: 'glyphicon glyphicon-remove',
                 invalid: 'glyphicon glyphicon-remove',
                 validating: 'glyphicon glyphicon-refresh'
                 validating: 'glyphicon glyphicon-refresh'
             },
             },
-            submitHandler: function(validator, form, submitButton) {
+            submitHandler: function(validator, form) {
                 // validator is the BootstrapValidator instance
                 // validator is the BootstrapValidator instance
                 // form is the jQuery object present the current form
                 // form is the jQuery object present the current form
                 form.find('.alert').html('Thanks for signing up. Now you can sign in as ' + validator.getFieldElements('username').val()).show();
                 form.find('.alert').html('Thanks for signing up. Now you can sign in as ' + validator.getFieldElements('username').val()).show();