docs2/Roo.docs.ViewSource.bjs
authorAlan Knowles <alan@roojs.com>
Fri, 11 Jan 2019 09:03:04 +0000 (17:03 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 11 Jan 2019 09:03:04 +0000 (17:03 +0800)
docs2/Roo.docs.ViewSource.js

docs2/Roo.docs.ViewSource.bjs
docs2/Roo.docs.ViewSource.js

index 70555a6..a96e88f 100644 (file)
@@ -12,7 +12,7 @@
  "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    \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      _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}"
    },
    "xtype" : "Modal",
    "Boolean fitwindow" : true,
index 508d88f..94309a5 100644 (file)
@@ -49,7 +49,7 @@ Roo.apply(Roo.docs.ViewSource.prototype, {
           
             _this.body_ctr.el.dom.innerHTML = _this.data.source;
            _this.body_ctr.el.dom.scrollTop = 0;
-          
+           _this.dialog.setTitle("View Source: " + this.data.fname);
           _this.dialog.el.setStyle('zIndex', '10002');
           
       }