Pman.Tab.MtrackCal.bjs
authorAlan Knowles <alan@roojs.com>
Thu, 10 Apr 2014 02:45:50 +0000 (10:45 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 10 Apr 2014 02:45:50 +0000 (10:45 +0800)
Pman.Tab.MtrackCal.js

Pman.Tab.MtrackCal.bjs
Pman.Tab.MtrackCal.js

index b8ce3d3..504f016 100644 (file)
@@ -17,7 +17,7 @@
                 {
                     "listeners": {
                         "render": "function (grid)\n{\n    \n    _this.cal = grid;\n}",
-                        "eventclick": "function (_self, Ev,r )\n{\n    // show the dialog..\n    // reload the calendar on exit.\n    Roo.log(Ev);\n    Roo.log(r);\n      Pman.Dialog.MTrackTicket.show({ id : r.data.id } , function(res) {\n        // update the record..\n        // redra\n        Roo.log(\"ticket updated\");\n        // start / end times?\n        for(k in res) {\n            r.data[k] = res[k];\n        }\n        \n        _this.cal.renderEvents();\n        \n    \n    });\n}",
+                        "eventclick": "function (_self, Ev,r )\n{\n    // show the dialog..\n    // reload the calendar on exit.\n    Roo.log(Ev);\n    Roo.log(r);\n      Pman.Dialog.MTrackTicket.show({ id : r.data.id } , function(res) {\n        // update the record..\n        // redra\n        Roo.log(\"ticket updated\");\n        // start / end times? - not sent through, so it should not update..\n        for(k in res) {\n            r.data[k] = res[k];\n        }\n        \n        _this.cal.renderEvents();\n        \n    \n    });\n}",
                         "eventrender": "function (_self, rec)\n{\n    \n    rec.data.time = ''; // not needed\n    rec.data.title = rec.data.developer_id_name + ' ' + rec.data.project_id_name;\n    rec.data.qtip  = '#' + rec.data.id + ' ' + rec.data.summary;\n    \n    if (!rec.data.estimated) {\n        rec.data.cls = \"Greys-q3-6 fc-black-text  \"; // grey...\n    } else {\n        rec.data.cls = 'fc-black-text RdYlGn-q' + rec.data.priority_id_seqid +'-7'\n    }\n    \n                    \n}"
                     },
                     "*prop": "grid",
index ce176b1..3de0cc4 100644 (file)
@@ -47,7 +47,7 @@ Pman.Tab.MtrackCal = new Roo.XComponent({
                             // update the record..
                             // redra
                             Roo.log("ticket updated");
-                            // start / end times?
+                            // start / end times? - not sent through, so it should not update..
                             for(k in res) {
                                 r.data[k] = res[k];
                             }