X-Git-Url: http://git.roojs.org/?p=Pman.Admin;a=blobdiff_plain;f=Pman.Dialog.AdminEnumImages.bjs;h=90b134692e48e96a7aed6d12ad7dbe1b6b826356;hp=d0b2f933f72604555d355eed9d72256ce5cfab95;hb=HEAD;hpb=9c63d4af681be7624935abc09189940df7e585c9 diff --git a/Pman.Dialog.AdminEnumImages.bjs b/Pman.Dialog.AdminEnumImages.bjs index d0b2f93..90b1346 100644 --- a/Pman.Dialog.AdminEnumImages.bjs +++ b/Pman.Dialog.AdminEnumImages.bjs @@ -2,7 +2,7 @@ "name" : "Pman.Dialog.AdminEnumImages", "parent" : "", "title" : "", - "path" : "/home/benny/gitlive/Pman.Admin/Pman.Dialog.AdminEnumImages.bjs", + "path" : "/home/benny/gitlive/web.hhyc_membership_system/Pman.Admin/Pman.Dialog.AdminEnumImages.bjs", "permname" : "", "modOrder" : "001", "strings" : { @@ -39,9 +39,9 @@ "listeners" : { "|activate" : "function() {\n _this.panel = this;\n if (_this.grid) {\n _this.grid.footer.onClick('first');\n }\n}" }, + "fitToframe" : true, "background" : false, "region" : "center", - "fitToframe" : true, "title" : "Images", "xtype" : "GridPanel", "fitContainer" : true, @@ -50,7 +50,7 @@ "items" : [ { "listeners" : { - "|rowdblclick" : "function (_self, rowIndex, e)\n{\n \n var s = _self.getDataSource().getAt(rowIndex);\n Pman.Dialog.PressReleaseImage.show(s.data, function() {\n _this.grid.footer.onClick('first');\n }); \n}", + "|rowdblclick" : "function (_self, rowIndex, e)\n{\n \n var s = _self.getDataSource().getAt(rowIndex);\n Pman.Dialog.Image.show(s.data, function() {\n _this.grid.footer.onClick('first');\n }); \n}", "|render" : "function() { \n _this.grid = this; \n //_this.dialog = Pman.Dialog.FILL_IN\n //if (_this.panel.active) {\n // this.footer.onClick('first');\n //}\n}" }, "autoExpandColumn" : "title", @@ -114,7 +114,7 @@ }, { "listeners" : { - "|click" : "function()\n{\n var s = _this.grid.getSelectionModel().getSelections();\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 \n Pman.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 \n Pman.Dialog.Image.show(data, function() {\n _this.grid.footer.onClick('first');\n });\n \n}\n " }, "text" : "Edit", "xtype" : "Button", @@ -124,7 +124,7 @@ }, { "listeners" : { - "|click" : "function()\n {\n Pman.genericDelete(_this, 'Images'); \n }\n " + "|click" : "function()\n{\n var ids = [];\n \n var sc = _this.grid.getSelectionModel().getSelections();\n \n if (!sc.length) {\n Roo.MessageBox.alert(\"Error\", \"Select rows by clicking the row\");\n return;\n }\n Roo.each(sc, function(v){\n ids.push(v.id);\n });\n Roo.MessageBox.confirm(\n \"Confirm\", \n \"Confirm Deletion of selected rows (some rows can not be deleted if they are referenced elsewhere\", \n function(res) {\n if(res != 'yes') {\n return;\n }\n new Pman.Request({\n method : 'POST',\n url : baseURL + '/Roo/Images',\n params : {\n _delete : ids.join(',')\n },\n success : function() {\n _this.grid.footer.onClick('refresh');\n }\n });\n }\n );\n}\n " }, "text" : "Delete", "xtype" : "Button",