Pman.Dialog.Image.bjs
authorleon <leon@roojs.com>
Thu, 7 Jul 2022 04:48:17 +0000 (12:48 +0800)
committerleon <leon@roojs.com>
Thu, 7 Jul 2022 04:48:17 +0000 (12:48 +0800)
Pman.Dialog.Image.js

Pman.Dialog.Image.bjs
Pman.Dialog.Image.js

index b733269..2b53153 100644 (file)
          "    Roo.MessageBox.alert(\"Error\", \"Error loading details\"); ",
          "}"
         ],
+        "beforeaction" : [
+         "function (_self, action)",
+         "{",
+         "    console.log(\"BEFORE ACTION\");",
+         "    console.log(action);",
+         "}"
+        ],
         "|actioncomplete" : [
          "function(_self,act)",
          "{",
index 44df2c4..f4302c9 100644 (file)
@@ -289,6 +289,11 @@ Pman.Dialog.Image = {
               // what about load failing..
               Roo.MessageBox.alert("Error", "Error loading details"); 
           },
+         beforeaction : function (_self, action)
+          {
+              console.log("BEFORE ACTION");
+              console.log(action);
+          },
          rendered : function (form)
           {
               _this.form= form;