mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-25 15:37:56 +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');
|
var acceptBtn = $('#' + containerId + ' .btn-accept');
|
||||||
acceptBtn.button('reset');
|
acceptBtn.button('reset');
|
||||||
|
|
||||||
acceptBtn.one('click', function () {
|
acceptBtn.click( function (event) {
|
||||||
var formData = {};
|
var formData = {};
|
||||||
$('#' + containerId + ' input').each(function (index, elem) {
|
$('#' + containerId + ' input').each(function (index, elem) {
|
||||||
formData[elem.name] = elem.value;
|
formData[elem.name] = elem.value;
|
||||||
@ -150,6 +150,7 @@ jQuery.fn.dialogForm = function (options) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
event.stopImmediatePropagation();
|
||||||
}.bind(this));
|
}.bind(this));
|
||||||
|
|
||||||
$('#' + containerId + ' .btn-cancel').click(function () {
|
$('#' + containerId + ' .btn-cancel').click(function () {
|
||||||
|
Loading…
Reference in New Issue
Block a user