mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-22 06:07:57 +01:00
fix multiple request (I hope)
This commit is contained in:
parent
460d8270c6
commit
3cf726f928
@ -76,14 +76,14 @@ jQuery.fn.dialogForm = function (options) {
|
||||
|
||||
// Clear form values ...
|
||||
if (options.clearForm == undefined || options.clearForm) {
|
||||
$("#" + containerId).find('input').attr('value', '');
|
||||
$("#" + containerId).find('input[name!="color"]').val('');
|
||||
}
|
||||
|
||||
// Clear button "Saving..." state ...
|
||||
var acceptBtn = $('#' + containerId + ' .btn-accept');
|
||||
acceptBtn.button('reset');
|
||||
|
||||
acceptBtn.click( function (event) {
|
||||
acceptBtn.unbind('click').click( function (event) {
|
||||
var formData = {};
|
||||
$('#' + containerId + ' input').each(function (index, elem) {
|
||||
formData[elem.name] = elem.value;
|
||||
|
Loading…
Reference in New Issue
Block a user