From: benny Date: Thu, 12 Jul 2018 08:41:47 +0000 (+0800) Subject: Pman.Dialog.AdminEnumImages.bjs X-Git-Url: http://git.roojs.org/?p=Pman.Admin;a=commitdiff_plain;h=924b4195ef55b5035b22b42e6c61cd630129b4c7 Pman.Dialog.AdminEnumImages.bjs Pman.Dialog.AdminEnumImages.js --- diff --git a/Pman.Dialog.AdminEnumImages.bjs b/Pman.Dialog.AdminEnumImages.bjs index 1076ba5..20b7cc4 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.Dialog.Image.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(_this);\n _this.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 87a21d2..bbd1018 100644 --- a/Pman.Dialog.AdminEnumImages.js +++ b/Pman.Dialog.AdminEnumImages.js @@ -175,7 +175,7 @@ Pman.Dialog.AdminEnumImages = { } var data = _this.grid.getDataSource().getById(s[0].data.id).data; console.log(_this); - _this.Dialog.Image.show(data, function() { + _this.dialog.Image.show(data, function() { _this.grid.footer.onClick('first'); });