docs2/Roo.docs.ViewSource.bjs
authorAlan Knowles <alan@roojs.com>
Fri, 11 Jan 2019 08:47:05 +0000 (16:47 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 11 Jan 2019 08:47:05 +0000 (16:47 +0800)
docs2/Roo.docs.ViewSource.js

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

index 6dcdd0e..d4eef41 100644 (file)
@@ -6,9 +6,8 @@
  "permname" : "",
  "modOrder" : "001",
  "strings" : {
-  "c4408d335012a56ff58937d78050efad" : "Accept",
-  "89babd10371e21bb9eaf39937de7c656" : "View Source",
-  "8ae4424e3e8d151789d3bdb669c20e6b" : "<i class='lnr lnr-download'></i> Download"
+  "d3d2e617335f08df83599665eef8a418" : "Close",
+  "89babd10371e21bb9eaf39937de7c656" : "View Source"
  },
  "items" : [
   {
     {
      "listeners" : {
       "render" : "function (_self)\n{\n    _this.acceptBtn = this;\n    \n}\n",
-      "click" : "function (_self, e)\n{\n    _this.dialog.hide();\n\n    if(_this.callback){\n        _this.callback.call(_this);\n    }\n    \n}\n"
+      "click" : "function (_self, e)\n{\n    _this.dialog.hide();\n \n    \n}\n"
      },
-     "| function disableIt" : "function() \n{ \n    this.setText('Scroll to end before agree');\n    this.disable();\n}",
-     "String cls" : "coba-agree-btn",
      "xtype" : "Button",
      "$ xns" : "Roo.bootstrap",
-     "String html" : "Accept",
+     "String html" : "Close",
      "string weight" : "primary",
-     "* prop" : "buttons[]",
-     "| function enableIt" : "function() \n{\n    this.setText('Agree');\n    \n    if(_this.data.buttonText){\n        this.setText(_this.data.buttonText);\n    }\n    \n    if(_this.data.btnType) {\n        this.setText(this['_'+_this.data.btnType]);\n    }\n    \n    this.enable();\n}"
-    },
-    {
-     "listeners" : {
-      "render" : "function (_self)\n{\n    _this.download_btn = this;\n}",
-      "click" : "function (_self, e)\n{\n    window.open(baseURL+'/Download/Popup/'+_this.data.declaration);\n}\n"
-     },
-     "String cls" : "coba-download-btn",
-     "String weight" : "default",
-     "xtype" : "Button",
-     "$ xns" : "Roo.bootstrap",
-     "String html" : "<i class='lnr lnr-download'></i> Download",
      "* prop" : "buttons[]"
     }
    ]
index 47bddb5..3e2b984 100644 (file)
@@ -8,9 +8,8 @@ Roo.docs.ViewSource= function() {}
 Roo.apply(Roo.docs.ViewSource.prototype, {
 
  _strings : {
-  'c4408d335012a56ff58937d78050efad' :"Accept",
-  '89babd10371e21bb9eaf39937de7c656' :"View Source",
-  '8ae4424e3e8d151789d3bdb669c20e6b' :"<i class='lnr lnr-download'></i> Download"
+  'd3d2e617335f08df83599665eef8a418' :"Close",
+  '89babd10371e21bb9eaf39937de7c656' :"View Source"
  },
 
  dialog : false,
@@ -60,36 +59,13 @@ Roo.apply(Roo.docs.ViewSource.prototype, {
     buttons : [
      {
       xtype : 'Button',
-      cls : 'coba-agree-btn',
-      disableIt : function() 
-      { 
-          this.setText('Scroll to end before agree');
-          this.disable();
-      },
-      enableIt : function() 
-      {
-          this.setText('Agree');
-          
-          if(_this.data.buttonText){
-              this.setText(_this.data.buttonText);
-          }
-          
-          if(_this.data.btnType) {
-              this.setText(this['_'+_this.data.btnType]);
-          }
-          
-          this.enable();
-      },
-      html : _this._strings['c4408d335012a56ff58937d78050efad'] /* Accept */,
+      html : _this._strings['d3d2e617335f08df83599665eef8a418'] /* Close */,
       weight : 'primary',
       listeners : {
        click : function (_self, e)
         {
             _this.dialog.hide();
-        
-            if(_this.callback){
-                _this.callback.call(_this);
-            }
+         
             
         },
        render : function (_self)
@@ -100,24 +76,6 @@ Roo.apply(Roo.docs.ViewSource.prototype, {
       },
       xns : Roo.bootstrap,
       '|xns' : 'Roo.bootstrap'
-     },
-     {
-      xtype : 'Button',
-      cls : 'coba-download-btn',
-      html : _this._strings['8ae4424e3e8d151789d3bdb669c20e6b'] /* <i class='lnr lnr-download'></i> Download */,
-      weight : 'default',
-      listeners : {
-       click : function (_self, e)
-        {
-            window.open(baseURL+'/Download/Popup/'+_this.data.declaration);
-        },
-       render : function (_self)
-        {
-            _this.download_btn = this;
-        }
-      },
-      xns : Roo.bootstrap,
-      '|xns' : 'Roo.bootstrap'
      }
     ],
     items  : [