{ "name" : "Roo.docs.ViewSource", "parent" : "", "title" : "", "path" : "/home/alan/gitlive/roojs1/docs/Roo.docs.ViewSource.bjs", "permname" : "", "modOrder" : "001", "strings" : { "d3d2e617335f08df83599665eef8a418" : "Close", "89babd10371e21bb9eaf39937de7c656" : "View Source" }, "items" : [ { "listeners" : { "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(\"
{0}
\",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}" }, "String size" : "xl", "xtype" : "Modal", "Boolean fitwindow" : true, "int max_width" : 900, "$ xns" : "Roo.bootstrap", "String title" : "View Source", "items" : [ { "listeners" : { "render" : "function (_self)\n{\n_this.body_ctr = this;\n}" }, "xtype" : "Container", "$ xns" : "Roo.bootstrap", "String style" : "width: 100%;overflow:auto;height:100%;" }, { "listeners" : { "render" : "function (_self)\n{\n _this.acceptBtn = this;\n \n}\n", "click" : "function (_self, e)\n{\n _this.dialog.hide();\n \n \n}\n" }, "xtype" : "Button", "$ xns" : "Roo.bootstrap", "String html" : "Close", "string weight" : "primary", "* prop" : "buttons[]" } ] } ] }