summaryrefslogtreecommitdiffhomepage
path: root/themes/luci-theme-rosy/htdocs/luci-static/rosy/js
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2018-11-19 07:51:06 +0100
committerGitHub <noreply@github.com>2018-11-19 07:51:06 +0100
commit90f728e5368afbfa90b9c55908e6bbf8988c2a4f (patch)
treeedec7e609ab9c532ea96de0ac7fc847f57d51176 /themes/luci-theme-rosy/htdocs/luci-static/rosy/js
parent18c6544057c6c26e2ccfdfcd0a9052d3a82b788a (diff)
parent58c03a8a068df58bfc23bee01d29545a1e23585b (diff)
Merge pull request #2306 from yglb/master
luci-theme-rosy: Repair form bug
Diffstat (limited to 'themes/luci-theme-rosy/htdocs/luci-static/rosy/js')
-rwxr-xr-xthemes/luci-theme-rosy/htdocs/luci-static/rosy/js/script.js21
1 files changed, 17 insertions, 4 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 11d3cd68ae..8985834eff 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
@@ -264,10 +264,23 @@
})
- if( $(window).width() > 992 ){
- $('.logged-in .main-right').width( $(window).width() - $('.logged-in .main-left').width() - 50 );
- }
-
$('body.logged-in').css('min-height', $(window).height());
+ $(function(){
+ if( $(window).width() > 992 ){
+ $('.logged-in .main-right').outerWidth( $(window).width() - $('.logged-in .main-left').width() - 50 );
+ }
+ var a = window.getComputedStyle($(".cbi-section .table .tr:first-child")[0], ':before').getPropertyValue('content');
+ var b = window.getComputedStyle($('.cbi-section .table .tr:last-child')[0], ':before').getPropertyValue('content');
+ console.log(typeof a);
+
+ if( a != 'none' || b != 'none' ){
+ $('.cbi-section .table .tr:first-child .td:first-child').css('border-top-left-radius', '0');
+ $('.cbi-section .table .tr:last-child .td:first-child').css('border-bottom-left-radius', '0');
+ $('.cbi-section .table .tr:first-child .th:first-child').css('border-top-left-radius', '0');
+ console.log($('.cbi-section .table .tr:last-child .td:first-child'));
+
+ }
+ });
+
})(jQuery);