From: Alan Knowles Date: Fri, 11 Jan 2019 08:47:05 +0000 (+0800) Subject: docs2/Roo.docs.ViewSource.bjs X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=190ca662db6e0181b5dd0277c82e8660b0f8c4ee docs2/Roo.docs.ViewSource.bjs docs2/Roo.docs.ViewSource.js --- diff --git a/docs2/Roo.docs.ViewSource.bjs b/docs2/Roo.docs.ViewSource.bjs index 6dcdd0e5d3..d4eef410f0 100644 --- a/docs2/Roo.docs.ViewSource.bjs +++ b/docs2/Roo.docs.ViewSource.bjs @@ -6,9 +6,8 @@ "permname" : "", "modOrder" : "001", "strings" : { - "c4408d335012a56ff58937d78050efad" : "Accept", - "89babd10371e21bb9eaf39937de7c656" : "View Source", - "8ae4424e3e8d151789d3bdb669c20e6b" : " Download" + "d3d2e617335f08df83599665eef8a418" : "Close", + "89babd10371e21bb9eaf39937de7c656" : "View Source" }, "items" : [ { @@ -46,27 +45,12 @@ { "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" : " Download", "* prop" : "buttons[]" } ] diff --git a/docs2/Roo.docs.ViewSource.js b/docs2/Roo.docs.ViewSource.js index 47bddb55df..3e2b984188 100644 --- a/docs2/Roo.docs.ViewSource.js +++ b/docs2/Roo.docs.ViewSource.js @@ -8,9 +8,8 @@ Roo.docs.ViewSource= function() {} Roo.apply(Roo.docs.ViewSource.prototype, { _strings : { - 'c4408d335012a56ff58937d78050efad' :"Accept", - '89babd10371e21bb9eaf39937de7c656' :"View Source", - '8ae4424e3e8d151789d3bdb669c20e6b' :" 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'] /* 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 : [