"path" : "/home/edward/gitlive/Pman.BAdmin/Pman.Dialog.LoginNotice.bjs",
"permname" : "",
"modOrder" : "001",
- "strings" : {
- "c4408d335012a56ff58937d78050efad" : "Accept",
- "d41d8cd98f00b204e9800998ecf8427e" : ""
- },
"items" : [
- {
- "listeners" : {
- "btnclick" : "function (e)\n{\n return;\n}",
- "show" : "function (_self)\n{\n _this.dialog.footerEl.setVisibilityMode(Roo.Element.DISPLAY).hide();\n \n if(_this.data.title){\n _this.dialog.titleEl.dom.innerHTML = _this.data.title;\n }\n \n if(_this.data.buttonText){\n _this.acceptBtn.setText(_this.data.buttonText);\n }\n \n if(_this.data.chunk){\n \n Roo.Ajax.request({\n url : baseURL + '/Roo/TermsRender/' + _this.data.chunk,\n method : 'GET',\n success : function(res) {\n \n _this.terms_body.el.dom.innerHTML = res.responseText;\n \n _this.dialog.init();\n }\n });\n \n }\n \n if(_this.data.declaration){\n \n Roo.Ajax.request({\n url : baseURL + '/Roo/DeclarationsRender/' + _this.data.declaration,\n method : 'GET',\n success : function(res) {\n \n _this.terms_body.el.dom.innerHTML = res.responseText;\n \n _this.dialog.init();\n }\n });\n \n }\n \n _this.dialog.el.setStyle('zIndex', '10002');\n \n}"
- },
- "String cls" : "enable-overflow",
- "String size" : "lg",
- "| function onScroll" : "function() \n{ \n var scrollHeight = _this.terms_body.el.dom.scrollHeight;\n \n var scrollTop = Math.ceil(_this.terms_body.el.getScroll().top); // prevent zoom browser\n \n if(scrollHeight - 380 > scrollTop){\n return;\n }\n \n _this.acceptBtn.enableIt();\n \n}",
- "xtype" : "Modal",
- "$ xns" : "Roo.bootstrap",
- "| function init" : "function() \n{ \n _this.terms_body.el.scrollTo('top');\n \n _this.acceptBtn.enableIt();\n \n if(typeof(_this.data.disableScrolling) != 'undefined' && _this.data.disableScrolling == 1){\n return;\n }\n \n var scrollHeight = _this.terms_body.el.dom.scrollHeight;\n \n if(scrollHeight <= 380){\n return;\n }\n \n _this.acceptBtn.disableIt();\n \n _this.terms_body.el.on('scroll', this.onScroll, this);\n}",
- "String title" : "",
- "items" : [
- {
- "xtype" : "Row",
- "$ xns" : "Roo.bootstrap",
- "items" : [
- {
- "listeners" : {
- "render" : "function (_self)\n{\n _this.terms_body = this;\n}"
- },
- "Number md" : 12,
- "xtype" : "Column",
- "$ xns" : "Roo.bootstrap",
- "String style" : "max-height: 380px; overflow-y: auto;"
- },
- {
- "Number md" : 12,
- "String cls" : "text-right",
- "xtype" : "Column",
- "$ xns" : "Roo.bootstrap",
- "String style" : "margin-top: 15px;",
- "items" : [
- {
- "listeners" : {
- "render" : "function (_self)\n{\n _this.acceptBtn = this;\n \n}",
- "click" : "function (_self, e)\n{\n _this.dialog.hide();\n\n if(_this.callback){\n _this.callback.call(_this);\n }\n \n}"
- },
- "| function disableIt" : "function() \n{ \n this.setText('Scroll to end before agree');\n this.disable();\n}",
- "String cls" : "coba-agree-btn",
- "String weight" : "primary",
- "xtype" : "Button",
- "$ xns" : "Roo.bootstrap",
- "String html" : "Accept",
- "| function enableIt" : "function() \n{ \n this.setText('Agree');\n \n if(_this.data.buttonText){\n this.setText(_this.data.buttonText);\n }\n \n this.enable();\n}"
- }
- ]
- }
- ]
- }
- ]
- }
]
}
\ No newline at end of file