[fix] double insert

This commit is contained in:
Rushabh Mehta 2014-08-21 14:26:09 +05:30
parent eabcfa8a8e
commit 76ee6db32a

View file

@ -564,7 +564,7 @@ _f.Frm.prototype.reload_doc = function() {
var validated;
_f.Frm.prototype.save = function(save_action, callback, btn, on_error) {
$(btn).prop("disabled", true);
btn && $(btn).prop("disabled", true);
$(document.activeElement).blur();
// let any pending js process finish