fix one click problem on empty input

This commit is contained in:
Ezequiel Bergamaschi 2014-02-01 18:13:16 -03:00 committed by Ezequiel Bergamaschi
parent 4646ae15c4
commit 0891beeecd

View File

@ -93,7 +93,7 @@ jQuery.fn.dialogForm = function (options) {
var acceptBtn = $('#' + containerId + ' .btn-accept');
acceptBtn.button('reset');
acceptBtn.one('click', function () {
acceptBtn.click( function (event) {
var formData = {};
$('#' + containerId + ' input').each(function (index, elem) {
formData[elem.name] = elem.value;
@ -150,6 +150,7 @@ jQuery.fn.dialogForm = function (options) {
}
});
event.stopImmediatePropagation();
}.bind(this));
$('#' + containerId + ' .btn-cancel').click(function () {