Fix etemplate2 submit() method for those buttons which they do not have nested ids

This commit is contained in:
Hadi Nategh 2014-07-07 13:25:20 +00:00
parent 5ba884f4a6
commit 296530b320

View File

@ -539,9 +539,10 @@ etemplate2.prototype.submit = function(button, async, no_validation)
target = target[idx];
}
}
else if (typeof values.button == 'undefined')
else if (typeof values.button == 'undefined' || jQuery.isEmptyObject(values.button))
{
values.button = button.id;
delete values.button;
values[button.id] = true;
}
}