2 "name" : "Roo.docs.ViewSource",
5 "path" : "/home/alan/gitlive/roojs1/docs2/Roo.docs.ViewSource.bjs",
9 "eab9dc0ccdb8cffda2c74258fc433437" : "Please scroll through and read the full document in order to agree the statement",
10 "d41d8cd98f00b204e9800998ecf8427e" : "",
11 "c4408d335012a56ff58937d78050efad" : "Accept",
12 "c3eb5c3b9018d75cb7032deb99fe43e9" : "I understand",
13 "39535fa9d04b1337c8394b684ccec7bb" : "I agree",
14 "8ae4424e3e8d151789d3bdb669c20e6b" : "<i class='lnr lnr-download'></i> Download"
17 "accept_terms_dialog_BTN_UDS" : "c3eb5c3b9018d75cb7032deb99fe43e9",
18 "accept_terms_dialog_SCROLL_AGREE" : "eab9dc0ccdb8cffda2c74258fc433437",
19 "accept_terms_dialog_title" : "d41d8cd98f00b204e9800998ecf8427e",
20 "accept_terms_dialog_BTN_AGREE" : "39535fa9d04b1337c8394b684ccec7bb"
25 "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}"
27 "String cls" : "accept-dialog enable-modal-body-overflow",
28 "string _BTN_UDS" : "I understand",
29 "| function onScroll" : "function() \n{ \n var scrollHeight = _this.dialog.bodyEl.dom.scrollHeight;\n \n var scrollTop = Math.ceil(_this.dialog.bodyEl.getScroll().top); // prevent zoom browser\n \n /*\n * Container height is 480px, however we need to give some leeway for handling the zoom level issue..\n * 50px is leeway\n */\n \n if(scrollHeight - _this.dialog.bodyEl.getHeight() - 50 > scrollTop){\n return;\n }\n \n _this.acceptBtn.enableIt();\n \n}",
30 "string _SCROLL_AGREE" : "Please scroll through and read the full document in order to agree the statement",
31 "string fit_content" : true,
33 "int max_width" : 900,
34 "$ xns" : "Roo.bootstrap",
35 "| function init" : "function() \n{ \n _this.dialog.bodyEl.scrollTo('top');\n \n _this.acceptBtn.enableIt();\n \n if(\n typeof(_this.data.disableScrolling) != 'undefined' &&\n _this.data.disableScrolling == 1\n ){\n return;\n }\n \n var scrollHeight = _this.dialog.bodyEl.dom.scrollHeight;\n \n /*\n * 50px is leeway\n */\n \n if(scrollHeight <= _this.dialog.bodyEl.getHeight() + 50){\n return;\n }\n \n _this.acceptBtn.disableIt();\n \n _this.dialog.bodyEl.on('scroll', this.onScroll, this);\n \n (function() {\n this.onScroll(); \n }).defer(100,this);\n \n}",
37 "string _BTN_AGREE" : "I agree",
38 "string name" : "accept_terms_dialog",
41 "xtype" : "Container",
42 "$ xns" : "Roo.bootstrap",
43 "String style" : "width: 100%;",
47 "$ xns" : "Roo.bootstrap",
51 "render" : "function (_self)\n{\n _this.terms_body = this;\n}"
54 "String cls" : "document-body-ctn",
56 "$ xns" : "Roo.bootstrap"
64 "render" : "function (_self)\n{\n _this.acceptBtn = this;\n \n}\n",
65 "click" : "function (_self, e)\n{\n _this.dialog.hide();\n\n if(_this.callback){\n _this.callback.call(_this);\n }\n \n}\n"
67 "| function disableIt" : "function() \n{ \n this.setText('Scroll to end before agree');\n this.disable();\n}",
68 "String cls" : "coba-agree-btn",
70 "$ xns" : "Roo.bootstrap",
71 "String html" : "Accept",
72 "string weight" : "primary",
73 "* prop" : "buttons[]",
74 "| 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}"
78 "render" : "function (_self)\n{\n _this.download_btn = this;\n}",
79 "click" : "function (_self, e)\n{\n window.open(baseURL+'/Download/Popup/'+_this.data.declaration);\n}\n"
81 "String cls" : "coba-download-btn",
82 "String weight" : "default",
84 "$ xns" : "Roo.bootstrap",
85 "String html" : "<i class='lnr lnr-download'></i> Download",
86 "* prop" : "buttons[]"