mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-22 14:17:57 +01:00
fix one click problem on empty input
This commit is contained in:
parent
4646ae15c4
commit
0891beeecd
@ -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 () {
|
||||
|
Loading…
Reference in New Issue
Block a user