},
"String cls" : "accept-dialog enable-modal-body-overflow",
"string _BTN_UDS" : "I understand",
- "| 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}",
"string _SCROLL_AGREE" : "Please scroll through and read the full document in order to agree the statement",
"string fit_content" : true,
"xtype" : "Modal",
},
max_width : 900,
name : 'accept_terms_dialog',
- onScroll : function()
- {
- var scrollHeight = _this.dialog.bodyEl.dom.scrollHeight;
-
- var scrollTop = Math.ceil(_this.dialog.bodyEl.getScroll().top); // prevent zoom browser
-
- /*
- * Container height is 480px, however we need to give some leeway for handling the zoom level issue..
- * 50px is leeway
- */
-
- if(scrollHeight - _this.dialog.bodyEl.getHeight() - 50 > scrollTop){
- return;
- }
-
- _this.acceptBtn.enableIt();
-
- },
_SCROLL_AGREE : _this._strings['eab9dc0ccdb8cffda2c74258fc433437'] /* Please scroll through and read the full document in order to agree the statement */,
title : _this._strings['d41d8cd98f00b204e9800998ecf8427e'] /* */,
listeners : {