Pman.Dialog.XtupleJournalEntry.bjs
authorAlan Knowles <alan@roojs.com>
Mon, 23 Dec 2013 09:34:10 +0000 (17:34 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 23 Dec 2013 09:34:10 +0000 (17:34 +0800)
Pman.Dialog.XtupleJournalEntry.js

Pman.Dialog.XtupleJournalEntry.bjs
Pman.Dialog.XtupleJournalEntry.js

index 3f1f6ff..0a879c4 100644 (file)
                 },
                 {
                     "listeners": {
-                        "click": "function (_self, e)\n{\n    // do some checks?\n     \n    \n    _this.dialog.el.mask(\"Saving\");\n    _this.form.doAction(\"submit\");\n\n}"
+                        "click": "function (_self, e)\n{\n    // do some checks?\n     \n    if (_this.data.gltrans_id) {\n        return;\n    }\n\n    _this.form.doAction(\"submit\");\n\n}"
                     },
                     "*prop": "buttons[]",
                     "text": "Save",
index 2aa39d3..0fe2cea 100644 (file)
@@ -458,8 +458,10 @@ Pman.Dialog.XtupleJournalEntry = {
                         {
                             // do some checks?
                              
-                            
-                            _this.dialog.el.mask("Saving");
+                            if (_this.data.gltrans_id) {
+                                return;
+                            }
+                        
                             _this.form.doAction("submit");
                         
                         }