From 9a65cb2d417401dc87d82743ca472b9fabe7dc70 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 11 Jan 2019 16:45:38 +0800 Subject: [PATCH] docs2/Roo.docs.ViewSource.bjs docs2/Roo.docs.ViewSource.js --- docs2/Roo.docs.ViewSource.bjs | 2 +- docs2/Roo.docs.ViewSource.js | 79 +++-------------------------------- 2 files changed, 6 insertions(+), 75 deletions(-) diff --git a/docs2/Roo.docs.ViewSource.bjs b/docs2/Roo.docs.ViewSource.bjs index 9be5c48cc1..f08dc61b64 100644 --- a/docs2/Roo.docs.ViewSource.bjs +++ b/docs2/Roo.docs.ViewSource.bjs @@ -22,7 +22,7 @@ "items" : [ { "listeners" : { - "show" : "function (_self)\n{\n if(_this.data.buttonText){\n _this.acceptBtn.setText(_this.data.buttonText);\n }\n \n if(_this.data.titleType) {\n _this.dialog.titleEl.dom.innerHTML = this['_'+_this.data.titleType];\n }\n \n if(_this.data.btnType) {\n _this.acceptBtn.setText(this['_'+_this.data.btnType]);\n _this.acceptBtn['_'+_this.data.btnType] = this['_'+_this.data.btnType];\n }\n \n if(_this.data.cls){\n _this.dialog.el.addClass(_this.data.cls);\n }\n \n if(_this.data.declaration){\n \n Roo.Ajax.request({\n url : baseURL + '/Roo/DeclarationsRender/' + _this.data.declaration,\n method : 'GET',\n mask : 'Loading...',\n success : function(res) {\n \n _this.terms_body.el.dom.innerHTML = res.responseText;\n \n _this.dialog.init();\n \n (function() {\n _this.dialog.resize();\n }).defer(10);\n }\n });\n \n }\n \n if(_this.data.nickname){\n \n new Pman.Request({\n url: baseURL + '/Roo/Coba_declarations.php',\n method : 'GET',\n mask : 'Loading...',\n params : {\n _nickname : _this.data.nickname\n },\n success : function(res) {\n \n if(typeof(_this.data.title) == 'undefined') {\n \n _this.dialog.titleEl.dom.innerHTML = res.data.title;\n }\n \n _this.terms_body.el.dom.innerHTML = res.data.content;\n \n _this.dialog.init();\n \n (function() {\n _this.dialog.resize();\n }).defer(10);\n }\n });\n \n }\n \n if(_this.data.title){\n _this.dialog.titleEl.dom.innerHTML = _this.data.title;\n }\n \n _this.download_btn.hide();\n \n if(_this.data.allow_download) {\n \n _this.download_btn.show();\n }\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 \n \n \n _this.dialog.el.setStyle('zIndex', '10002');\n \n}" }, "String cls" : "accept-dialog enable-modal-body-overflow", "string _BTN_UDS" : "I understand", diff --git a/docs2/Roo.docs.ViewSource.js b/docs2/Roo.docs.ViewSource.js index f2ad9956f8..5f95ec892a 100644 --- a/docs2/Roo.docs.ViewSource.js +++ b/docs2/Roo.docs.ViewSource.js @@ -90,81 +90,12 @@ Roo.apply(Roo.docs.ViewSource.prototype, { listeners : { show : function (_self) { - if(_this.data.buttonText){ - _this.acceptBtn.setText(_this.data.buttonText); - } - - if(_this.data.titleType) { - _this.dialog.titleEl.dom.innerHTML = this['_'+_this.data.titleType]; - } - - if(_this.data.btnType) { - _this.acceptBtn.setText(this['_'+_this.data.btnType]); - _this.acceptBtn['_'+_this.data.btnType] = this['_'+_this.data.btnType]; - } - - if(_this.data.cls){ - _this.dialog.el.addClass(_this.data.cls); - } + // if(_this.data.buttonText){ + // _this.acceptBtn.setText(_this.data.buttonText); + // } - if(_this.data.declaration){ - - Roo.Ajax.request({ - url : baseURL + '/Roo/DeclarationsRender/' + _this.data.declaration, - method : 'GET', - mask : 'Loading...', - success : function(res) { - - _this.terms_body.el.dom.innerHTML = res.responseText; - - _this.dialog.init(); - - (function() { - _this.dialog.resize(); - }).defer(10); - } - }); - - } - - if(_this.data.nickname){ - - new Pman.Request({ - url: baseURL + '/Roo/Coba_declarations.php', - method : 'GET', - mask : 'Loading...', - params : { - _nickname : _this.data.nickname - }, - success : function(res) { - - if(typeof(_this.data.title) == 'undefined') { - - _this.dialog.titleEl.dom.innerHTML = res.data.title; - } - - _this.terms_body.el.dom.innerHTML = res.data.content; - - _this.dialog.init(); - - (function() { - _this.dialog.resize(); - }).defer(10); - } - }); - - } - - if(_this.data.title){ - _this.dialog.titleEl.dom.innerHTML = _this.data.title; - } - - _this.download_btn.hide(); - - if(_this.data.allow_download) { - - _this.download_btn.show(); - } + + _this.dialog.el.setStyle('zIndex', '10002'); -- 2.39.2