MTrackWeb/templates/images/MTrackWeb/MTrackWeb.Ticket.bjs
[web.mtrack] / MTrackWeb / templates / images / MTrackWeb / MTrackWeb.Ticket.bjs
1 {
2     "id": "roo-file-161",
3     "name": "MTrackWeb.Ticket",
4     "parent": "MTrackWeb.Layout",
5     "title": "MTrackWeb.Ticket",
6     "path": "/home/alan/gitlive/web.mtrack/MTrackWeb/templates/images/MTrackWeb/MTrackWeb.Ticket.bjs",
7     "items": [
8         {
9             "listeners": {
10                 "activate": "function (_self)\n{\n    try {\n        if (!_this.url || !_this.project || (_this.project != MTrack.projectCombo.getValue())) {\n            (function() { _this.tpanel.mload(\"/Report/1\"); }).defer(300);\n        }\n        \n        \n    } catch(e) {Roo.log(\"activate fail\" + e.toString()); }\n}"
11             },
12             "background": true,
13             "fitContainer": true,
14             "fitToFrame": true,
15             "region": "center",
16             "title": "Tickets",
17             "xtype": "NestedLayoutPanel",
18             "|xns": "Roo",
19             "items": [
20                 {
21                     "|xns": "Roo",
22                     "xtype": "BorderLayout",
23                     "*prop": "layout",
24                     "items": [
25                         {
26                             "*prop": "center",
27                             "tabPosition": "top",
28                             "xtype": "LayoutRegion",
29                             "|xns": "Roo"
30                         },
31                         {
32                             "listeners": {
33                                 "activate": "function (_self)\n{\n    _this.tpanel = _self;\n}"
34                             },
35                             "autoScroll": true,
36                             "background": true,
37                             "fitContainer": true,
38                             "fitToFrame": true,
39                             "region": "center",
40                             "title": "Tickets",
41                             "xtype": "ContentPanel",
42                             "|mload": "function(url) {\n    this._url = url;\n    this._project = MTrack.projectCombo.getValue();\n    MTrack.ajaxLoad(url, this);\n\n    try { \n        window.history.pushState( { url: url }, \"Browse : \" + url , baseURL + url );\n        Roo.log(\"history push state\");\n    } catch (e) {\n        Roo.log(e);\n        \n    }\n}\n",
43                             "|xns": "Roo",
44                             "items": [
45                                 {
46                                     "|xns": "Roo",
47                                     "xtype": "Toolbar",
48                                     "*prop": "toolbar",
49                                     "items": [
50                                         {
51                                             "text": "Add New Ticket",
52                                             "xtype": "Button",
53                                             "|xns": "Roo.Toolbar"
54                                         },
55                                         {
56                                             "|xns": "Roo.Toolbar",
57                                             "xtype": "Fill"
58                                         },
59                                         {
60                                             "text": "View:",
61                                             "xtype": "TextItem",
62                                             "|xns": "Roo.Toolbar"
63                                         },
64                                         {
65                                             "listeners": {
66                                                 "click": "function (_self, e)\n{\n    _this.tpanel.mload(\"/Report/1\");\n}"
67                                             },
68                                             "text": "Active",
69                                             "xtype": "Button",
70                                             "|xns": "Roo.Toolbar"
71                                         },
72                                         {
73                                             "listeners": {
74                                                 "click": "function (_self, e)\n{\n    _this.tpanel.mload(\"/Report/4\");\n}"
75                                             },
76                                             "text": "Assigned to me",
77                                             "xtype": "Button",
78                                             "|xns": "Roo.Toolbar"
79                                         },
80                                         {
81                                             "listeners": {
82                                                 "click": "function (_self, e)\n{\n    _this.tpanel.mload(\"/Report/2\");\n}"
83                                             },
84                                             "text": "Closed",
85                                             "xtype": "Button",
86                                             "|xns": "Roo.Toolbar"
87                                         },
88                                         {
89                                             "listeners": {
90                                                 "click": "function (_self, e)\n{\n    _this.tpanel.mload(\"/Report/3\");\n}"
91                                             },
92                                             "text": "Pending Review",
93                                             "xtype": "Button",
94                                             "|xns": "Roo.Toolbar"
95                                         },
96                                         {
97                                             "listeners": {
98                                                 "click": "function (_self, e)\n{\n    _this.tpanel.mload(\"/Report/5\");\n}"
99                                             },
100                                             "text": "All Projects",
101                                             "xtype": "Button",
102                                             "|xns": "Roo.Toolbar"
103                                         }
104                                     ]
105                                 }
106                             ]
107                         }
108                     ]
109                 }
110             ]
111         }
112     ],
113     "permname": "",
114     "modOrder": "100"
115 }