sync
[roojs1] / docs / Roo.docs.ViewSource.bjs
index 08da87d..8ee95a9 100644 (file)
@@ -14,6 +14,7 @@
    "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(\"<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}"
    },
    "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(\"<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}"
    },
+   "String size" : "xl",
    "xtype" : "Modal",
    "Boolean fitwindow" : true,
    "int max_width" : 900,
    "xtype" : "Modal",
    "Boolean fitwindow" : true,
    "int max_width" : 900,