Pman.Dialog.AdminEnumMerge.bjs
authorEdward <edward@roojs.com>
Fri, 28 Aug 2015 09:20:12 +0000 (17:20 +0800)
committerEdward <edward@roojs.com>
Fri, 28 Aug 2015 09:20:12 +0000 (17:20 +0800)
Pman.Dialog.AdminEnumMerge.js

Pman.Dialog.AdminEnumMerge.bjs
Pman.Dialog.AdminEnumMerge.js

index 9c3c082..e0b427d 100644 (file)
     },
     {
      "listeners" : {
-      "|click" : "function() \n{\n    if(typeof(_this.data._confirm) != 'undefined' && _this.data._confirm * 1 == 1){\n        Roo.MessageBox.confirm(\n            \"Confirm\", \n            \"Are you sure '\" + _this.data.display_name + \"' Merge with \" + _this.form.findField('merge_id'), \n            function(res) {\n                if(res != 'yes') {\n                    return;\n                }\n                new Pman.Request({\n                    method : 'POST',\n                    url : baseURL + '/Roo/Core_enum',\n                    params : {\n                        _delete  : ids.join(',')\n                    },\n                    success : function() {\n                        _this.grid.footer.onClick('refresh');\n                    }\n                });\n            }\n        );\n    }\n    _this.form.doAction('submit');\n    \n}"
+      "|click" : "function() \n{\n    if(typeof(_this.data._confirm) != 'undefined' && _this.data._confirm * 1 == 1){\n        Roo.MessageBox.confirm(\n            \"Confirm\", \n            \"Are you sure '\" + _this.data.display_name + \"' Merge with '\" + _this.form.findField('_merge_id').getRawValue() + \"'\", \n            function(res) {\n                if(res != 'yes') {\n                    return;\n                }\n                new Pman.Request({\n                    method : 'POST',\n                    url : baseURL + '/Roo/Core_enum',\n                    params : {\n                        _delete  : ids.join(',')\n                    },\n                    success : function() {\n                        _this.grid.footer.onClick('refresh');\n                    }\n                });\n            }\n        );\n    }\n    _this.form.doAction('submit');\n    \n}"
      },
      "text" : "OK",
      "xtype" : "Button",
index d1f9847..b430e03 100644 (file)
@@ -84,7 +84,7 @@ Pman.Dialog.AdminEnumMerge = {
             if(typeof(_this.data._confirm) != 'undefined' && _this.data._confirm * 1 == 1){
                 Roo.MessageBox.confirm(
                     "Confirm", 
-                    "Are you sure '" + _this.data.display_name + "' Merge with " + _this.form.findField('merge_id')
+                    "Are you sure '" + _this.data.display_name + "' Merge with '" + _this.form.findField('_merge_id').getRawValue() + "'"
                     function(res) {
                         if(res != 'yes') {
                             return;