Merge branch 'master' of github.com:webnotes/wnframework

This commit is contained in:
Rushabh Mehta 2012-12-18 12:53:11 +05:30
commit cedc481fd0

View file

@ -927,7 +927,7 @@ _f.Frm.prototype.savesubmit = function(btn) {
var me = this;
wn.confirm("Permanently Submit "+this.docname+"?", function() {
me.save('Submit', function(r) {
if(!r.exc && me.cscript.on_submit) {
if(!r.exc) {
me.runclientscript('on_submit', me.doctype, me.docname);
}
}, btn);