OSDN Git Service

Version 0.6.5
[pettanr/clientJs.git] / 0.3.0 / common.js
index e9b4a76..18f937c 100644 (file)
@@ -1,4 +1,4 @@
-/*\r
+/*\r
  * pettanR common.js\r
  *   version 0.1.0\r
  * \r
        }\r
        \r
        var location = document.location.pathname,\r
-               isWorkPage = location.indexOf( 'work.html') !== -1,\r
-               deep = location.indexOf( '\/diary\/') !== -1 || location.indexOf( '\/help\/') !== -1 || location.indexOf( '\/sitemap\/') !== -1;\r
+               isWorkPage = location.indexOf( '\/work.html') !== -1,\r
+               deep =  location.indexOf( '\/diary\/') !== -1 ||\r
+                               location.indexOf( '\/text\/') !== -1 ||\r
+                               location.indexOf( '\/help\/') !== -1 ||\r
+                               location.indexOf( '\/sitemap\/') !== -1 ||\r
+                               location.indexOf( '\/wiki\/') !== -1;\r
 \r
-       var LoginUserConsole =\r
-               isWorkPage === false ?\r
+       var LoginUserConsole = isWorkPage === false ?\r
                ( function(){\r
                        var _body = document.body,\r
                                _root = document.getElementsByTagName( 'HTML')[ 0],\r
@@ -80,7 +83,7 @@
                                                }\r
                                        }\r
                                        \r
-                                       delete this.init;\r
+                                       delete LoginUserConsole.init;\r
                                },\r
                                show: function(){\r
                                        if(visible === true) return;\r
                                        \r
                                        _body.removeChild(filter);\r
                                        _body.style.overflow = '';\r
-                                       \r
+                                       if (_root) {\r
+                                               _root.style.overflow = '';\r
+                                       }\r
                                        _body.removeChild(iframe);\r
                                        \r
                                        visible = false;\r