diff options
author | Hannu Nyman <hannu.nyman@iki.fi> | 2019-02-21 17:39:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-21 17:39:06 +0200 |
commit | 5e312f956a83e8eeb63753bca5befbc78ae7c9a4 (patch) | |
tree | a5f0cca5c52eb913ea2a7caeb956f2107b3df362 /themes/luci-theme-rosy/htdocs/luci-static/rosy/js/script.js | |
parent | e0b29f5a59e5d5b1c4c4e980d2fb5ff5189cf826 (diff) | |
parent | f4e6e1a6a236fe4c6decdad366a92274caff8ba8 (diff) |
Merge pull request #2539 from yglb/rosy-bugsfix
luci-theme-rosy: Fix typo errors and style errors
Diffstat (limited to 'themes/luci-theme-rosy/htdocs/luci-static/rosy/js/script.js')
-rwxr-xr-x | themes/luci-theme-rosy/htdocs/luci-static/rosy/js/script.js | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/themes/luci-theme-rosy/htdocs/luci-static/rosy/js/script.js b/themes/luci-theme-rosy/htdocs/luci-static/rosy/js/script.js index e8424411db..73557adc0e 100755 --- a/themes/luci-theme-rosy/htdocs/luci-static/rosy/js/script.js +++ b/themes/luci-theme-rosy/htdocs/luci-static/rosy/js/script.js @@ -170,22 +170,22 @@ * Sidebar expand */ var showSide = false; - if ($(win).height() == 992) { - $(".showSide").click(function () { - if (showSide) { - $(".darkMask").stop(true).fadeOut("fast"); - $(".main-left").stop(true).fadeOut("fast"); - $(".main-right").css("overflow-y", "visible"); - showSide = false; - } else { - $(".darkMask").stop(true).fadeIn("fast"); - $(".main-left").stop(true).animate({ - width: "100%" - }, "fast").fadeIn("fast"); - $(".main-right").css("overflow-y", "hidden"); - showSide = true; - } - }); + $(".showSide").click(function () { + if (showSide) { + $(".darkMask").stop(true).fadeOut("fast"); + $(".main-left").stop(true).fadeOut("fast"); + $(".main-right").css("overflow-y", "visible"); + showSide = false; + } else { + $(".darkMask").stop(true).fadeIn("fast"); + $(".main-left").stop(true).animate({ + width: "100%" + }, "fast").fadeIn("fast"); + $(".main-right").css("overflow-y", "hidden"); + showSide = true; + } + }); + if($(win).width() <= 992){ $(".main-left").click(function(e) { e.preventDefault(); $(".main-left").stop(true).fadeOut("fast"); @@ -274,4 +274,4 @@ } }); -})(window, jQuery);
\ No newline at end of file +})(window, jQuery); |