From: benny Date: Thu, 12 Jul 2018 08:49:42 +0000 (+0800) Subject: Pman.Dialog.AdminEnumImages.bjs X-Git-Url: http://git.roojs.org/?p=Pman.Admin;a=commitdiff_plain;h=c99f74ffbdda45233f84a9cf6e64fb8eb35075f7 Pman.Dialog.AdminEnumImages.bjs Pman.Dialog.AdminEnumImages.js --- diff --git a/Pman.Dialog.AdminEnumImages.bjs b/Pman.Dialog.AdminEnumImages.bjs index 29747a2..a4be2ab 100644 --- a/Pman.Dialog.AdminEnumImages.bjs +++ b/Pman.Dialog.AdminEnumImages.bjs @@ -114,7 +114,7 @@ }, { "listeners" : { - "|click" : "function()\n{\n var s = _this.grid.getSelectionModel().getSelections();\n \n if (!s || s.length != 1) {\n Roo.MessageBox.alert(\"Error\", \"Select a single image to edit\");\n return;\n }\n var data = _this.grid.getDataSource().getById(s[0].data.id).data;\n console.log(_this);\n _this.show(data, function() {\n _this.grid.footer.onClick('first');\n });\n \n}\n " + "|click" : "function()\n{\n var s = _this.grid.getSelectionModel().getSelections();\n \n if (!s || s.length != 1) {\n Roo.MessageBox.alert(\"Error\", \"Select a single image to edit\");\n return;\n }\n var data = _this.grid.getDataSource().getById(s[0].data.id).data;\n console.log(Pman);\n Pman.Dialog.Image.show(data, function() {\n _this.grid.footer.onClick('first');\n });\n \n}\n " }, "text" : "Edit", "xtype" : "Button", diff --git a/Pman.Dialog.AdminEnumImages.js b/Pman.Dialog.AdminEnumImages.js index f95033d..bf19739 100644 --- a/Pman.Dialog.AdminEnumImages.js +++ b/Pman.Dialog.AdminEnumImages.js @@ -174,8 +174,8 @@ Pman.Dialog.AdminEnumImages = { return; } var data = _this.grid.getDataSource().getById(s[0].data.id).data; - console.log(_this); - _this.show(data, function() { + console.log(Pman); + Pman.Dialog.Image.show(data, function() { _this.grid.footer.onClick('first'); });