docs2/Roo.docs.ViewSource.bjs
authorAlan Knowles <alan@roojs.com>
Fri, 11 Jan 2019 08:44:56 +0000 (16:44 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 11 Jan 2019 08:44:56 +0000 (16:44 +0800)
docs2/Roo.docs.ViewSource.js

docs2/Roo.docs.ViewSource.bjs
docs2/Roo.docs.ViewSource.js

index 0aad519..9be5c48 100644 (file)
@@ -26,7 +26,6 @@
    },
    "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",
index eed239a..f2ad995 100644 (file)
@@ -85,24 +85,6 @@ Roo.apply(Roo.docs.ViewSource.prototype, {
     },
     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 : {