]> git.mxchange.org Git - friendica.git/commitdiff
frio - append tabbar to nav only if it's a direct child of section
authorrabuzarus <>
Fri, 3 Feb 2017 18:37:47 +0000 (19:37 +0100)
committerrabuzarus <>
Fri, 3 Feb 2017 18:37:47 +0000 (19:37 +0100)
view/theme/frio/js/theme.js

index 51e390b34c911d52a9b8dde65563430e83db0a4e..c149271804fe377f25a3ac1be5cc8b187162f276 100644 (file)
@@ -40,9 +40,7 @@ $(document).ready(function(){
        $(".field.select > select, .field.custom > select").addClass("form-control");
 
        // move the tabbar to the second nav bar
-       if( $("ul.tabbar").length ) {
-               $("ul.tabbar").appendTo("#topbar-second > .container > #tabmenu");
-       }
+       $("section ul.tabbar").first().appendTo("#topbar-second > .container > #tabmenu");
 
        // add mask css url to the logo-img container
        //