From: Alan Knowles Date: Mon, 21 May 2012 08:43:32 +0000 (+0800) Subject: Pman.Dialog.CoreNotifyRecur.bjs X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=38f3607388e34afafb00cbdbd7b55e0cfacfb6a2 Pman.Dialog.CoreNotifyRecur.bjs Pman.Dialog.CoreNotifyRecur.js --- diff --git a/Pman.Dialog.CoreNotifyRecur.bjs b/Pman.Dialog.CoreNotifyRecur.bjs index a3c7055a..e7e93bfd 100644 --- a/Pman.Dialog.CoreNotifyRecur.bjs +++ b/Pman.Dialog.CoreNotifyRecur.bjs @@ -100,7 +100,7 @@ }, { "listeners": { - "|click": "function()\n{\n _this.grid.stopEditing();\n var s = _this.grid.selModel.getSelectedCell()\n if (!s) {\n Roo.MessageBox.alert(\"Error\", \"Select row\");\n return;\n }\n \n new Pman.Request({\n url : baseURL + '/Roo/core_notify_recur',\n method : 'POST',\n params : {\n _delete : _this.grid.ds.getAt(s[0]).data.id,\n }, \n success : function() {\n _this.grid.ds.load({});\n },\n failure : function() {\n Roo.MessageBox.alert(\"Error\", \"Deleting failed - try reloading\");\n }\n });\n \n}\n " + "|click": "function()\n{\n _this.grid.stopEditing();\n var s = _this.grid.selModel.getSelectedCell();\n if (!s) {\n Roo.MessageBox.alert(\"Error\", \"Select row\");\n return;\n }\n \n new Pman.Request({\n url : baseURL + '/Roo/core_notify_recur',\n method : 'POST',\n params : {\n _delete : _this.grid.ds.getAt(s[0]).data.id,\n }, \n success : function() {\n _this.grid.ds.load({});\n },\n failure : function() {\n Roo.MessageBox.alert(\"Error\", \"Deleting failed - try reloading\");\n }\n });\n \n}\n " }, "cls": "x-btn-text-icon", "text": "Delete", diff --git a/Pman.Dialog.CoreNotifyRecur.js b/Pman.Dialog.CoreNotifyRecur.js index 1b3c0b86..107b2644 100644 --- a/Pman.Dialog.CoreNotifyRecur.js +++ b/Pman.Dialog.CoreNotifyRecur.js @@ -246,7 +246,7 @@ Pman.Dialog.CoreNotifyRecur = { click : function() { _this.grid.stopEditing(); - var s = _this.grid.selModel.getSelectedCell() + var s = _this.grid.selModel.getSelectedCell(); if (!s) { Roo.MessageBox.alert("Error", "Select row"); return;