X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=docs%2FRoo.docs.ViewSource.bjs;h=8ee95a9a996981900b0c63133e0388244cd90b8a;hb=75cbc4ce04c9c01ac47671cb01320ce699128d00;hp=082956335e66d70da0965c827736eed8807bfa1e;hpb=c1c0168c0e693c4262f3f744a82419f9d9b1807f;p=roojs1 diff --git a/docs/Roo.docs.ViewSource.bjs b/docs/Roo.docs.ViewSource.bjs index 082956335e..8ee95a9a99 100644 --- a/docs/Roo.docs.ViewSource.bjs +++ b/docs/Roo.docs.ViewSource.bjs @@ -2,7 +2,7 @@ "name" : "Roo.docs.ViewSource", "parent" : "", "title" : "", - "path" : "/home/alan/gitlive/roojs1/docs2/Roo.docs.ViewSource.bjs", + "path" : "/home/alan/gitlive/roojs1/docs/Roo.docs.ViewSource.bjs", "permname" : "", "modOrder" : "001", "strings" : { @@ -12,8 +12,9 @@ "items" : [ { "listeners" : { - "show" : "function (_self)\n{\n // if(_this.data.buttonText){\n // _this.acceptBtn.setText(_this.data.buttonText);\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}" + "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,