DataObjects/Core_person_signup.php
[Pman.Core] / Pman.Tab.CoreEmail.bjs
index d8dac99..8e4dd6d 100644 (file)
@@ -1,5 +1,5 @@
 {
-    "id": "roo-file-314",
+    "id": "roo-file-219",
     "name": "Pman.Tab.CoreEmail",
     "parent": "Pman.Tab.Admin",
     "title": "",
@@ -48,7 +48,7 @@
                                 {
                                     "listeners": {
                                         "|render": "function() \n{\n    _this.grid = this; \n    _this.dialog = Pman.Dialog.CoreEmail;\n    if (_this.panel.active) {\n       _this.grid.footer.onClick('first');\n    }\n}",
-                                        "|rowdblclick": "function (_self, rowIndex, e)\n{\n    if (!_this.dialog) return;\n    var data = this.getDataSource().getAt(rowIndex).data;\n    _this.dialog.show( {id : data.id, module : 'core'} , function() {\n        _this.grid.footer.onClick('first');\n    }); \n}\n",
+                                        "|rowdblclick": "function (_self, rowIndex, e)\n{\n    if (!_this.dialog) return;\n    var data = this.getDataSource().getAt(rowIndex).data;\n    _this.dialog.show( {id : data.id, module : 'core_email'} , function() {\n        _this.grid.footer.onClick('first');\n    }); \n}\n",
                                         "rowclick": "function (_self, rowIndex, e)\n{\n   // _this.grid.ds.load({});\n    _this.viewPanel.view.store.load({});\n}"
                                     },
                                     "*prop": "grid",
@@ -95,7 +95,7 @@
                                             "*prop": "footer",
                                             "displayInfo": true,
                                             "displayMsg": "Displaying Message{0} - {1} of {2}",
-                                            "emptyMsg": "No Mailing List Message found",
+                                            "emptyMsg": "Nothing found",
                                             "pageSize": 25,
                                             "xtype": "PagingToolbar",
                                             "|xns": "Roo"
                                                 },
                                                 {
                                                     "listeners": {
-                                                        "|click": "function()\n{\n  var sel = _this.grid.selModel.getSelected();\n  if (!sel) {\n        Roo.MessageBox.alert(\"Error\", \"Select a message to copy\");\n        return;\n    }\nnew Pman.Request({\n    url : baseURL + '/Roo/Core_mailing_list_message',\n    method : 'POST',\n    params : {\n        id : sel.data.id,\n        _make_copy : 1\n    },\n    success : function() {\n        _this.grid.footer.onClick('refresh');\n    }\n});\n  \n}\n"
+                                                        "|click": "function()\n{\n  var sel = _this.grid.selModel.getSelected();\n  if (!sel) {\n        Roo.MessageBox.alert(\"Error\", \"Select a message to copy\");\n        return;\n    }\nnew Pman.Request({\n    url : baseURL + '/Roo/Core_email',\n    method : 'POST',\n    params : {\n        id : sel.data.id,\n        _make_copy : 1\n    },\n    success : function() {\n        _this.grid.footer.onClick('refresh');\n    }\n});\n  \n}\n"
                                                     },
                                                     "cls": "x-btn-text-icon",
                                                     "text": "Copy",
                                                 },
                                                 {
                                                     "listeners": {
-                                                        "|click": "function()\n{\n    if (!_this.dialog) return;\n    _this.dialog.show( { id : 0, module : 'core' } , function() {\n        _this.grid.footer.onClick('first');\n   }); \n}\n"
+                                                        "|click": "function()\n{\n    if (!_this.dialog) return;\n    _this.dialog.show( { id : 0, module : 'core_email' } , function() {\n        _this.grid.footer.onClick('first');\n   }); \n}\n"
                                                     },
                                                     "cls": "x-btn-text-icon",
                                                     "text": "Add",
                                                 },
                                                 {
                                                     "listeners": {
-                                                        "|click": "function()\n{\n    Pman.genericDelete(_this, 'core_mailing_list_message');\n    \n}\n"
+                                                        "|click": "function()\n{\n    Pman.genericDelete(_this, 'core_email');\n    \n}\n"
                                                     },
                                                     "cls": "x-btn-text-icon",
                                                     "text": "Delete",
                                                     "*prop": "proxy",
                                                     "method": "GET",
                                                     "xtype": "HttpProxy",
-                                                    "|url": "baseURL+'/Roo/Core_mailing_list_message.php'",
+                                                    "|url": "baseURL+'/Roo/Core_email.php'",
                                                     "|xns": "Roo.data"
                                                 },
                                                 {