8ee95a9a996981900b0c63133e0388244cd90b8a
[roojs1] / docs / Roo.docs.ViewSource.bjs
1 {
2  "name" : "Roo.docs.ViewSource",
3  "parent" : "",
4  "title" : "",
5  "path" : "/home/alan/gitlive/roojs1/docs/Roo.docs.ViewSource.bjs",
6  "permname" : "",
7  "modOrder" : "001",
8  "strings" : {
9   "d3d2e617335f08df83599665eef8a418" : "Close",
10   "89babd10371e21bb9eaf39937de7c656" : "View Source"
11  },
12  "items" : [
13   {
14    "listeners" : {
15     "show" : "function (_self)\n{\n  //  if(_this.data.buttonText){\n    //    _this.acceptBtn.setText(_this.data.buttonText);\n   // }\n    \n    if (typeof( _this.data.source) == 'undefined') {\n        Roo.Ajax.request({\n            url : _this.data.src,\n            method : 'GET',\n            success : function(res, o)\n            {\n                Roo.docs.ViewSource.show({\n                    source : String.format(\"<PRE>{0}</PRE>\",res.responseText),\n                    fname : _this.data.src.split('/').pop()\n                });\n                \n            },\n            scope : this\n        });\n        \n    \n        return;\n    }\n     \n  _this.body_ctr.el.dom.innerHTML = _this.data.source;\n _this.body_ctr.el.dom.scrollTop = 0;\n _this.dialog.setTitle(\"View Source: \" + _this.data.fname);\n    _this.dialog.el.setStyle('zIndex', '10002');\n    \n}"
16    },
17    "String size" : "xl",
18    "xtype" : "Modal",
19    "Boolean fitwindow" : true,
20    "int max_width" : 900,
21    "$ xns" : "Roo.bootstrap",
22    "String title" : "View Source",
23    "items" : [
24     {
25      "listeners" : {
26       "render" : "function (_self)\n{\n_this.body_ctr = this;\n}"
27      },
28      "xtype" : "Container",
29      "$ xns" : "Roo.bootstrap",
30      "String style" : "width: 100%;overflow:auto;height:100%;"
31     },
32     {
33      "listeners" : {
34       "render" : "function (_self)\n{\n    _this.acceptBtn = this;\n    \n}\n",
35       "click" : "function (_self, e)\n{\n    _this.dialog.hide();\n \n    \n}\n"
36      },
37      "xtype" : "Button",
38      "$ xns" : "Roo.bootstrap",
39      "String html" : "Close",
40      "string weight" : "primary",
41      "* prop" : "buttons[]"
42     }
43    ]
44   }
45  ]
46 }