static/system/statics/libs/custom.js
/* This function allows top navigation menu to move to left navigation menu
     * when viewed in screens lower than 1024px and will move it back when viewed
     * higher than 1024px
     */
This function allows top navigation menu to move to left navigation menu
when viewed in screens lower than 1024px and will move it back when viewed
higher than 1024px
This function allows top navigation menu to move to left navigation menu when viewed in screens lower than 1024px and will move it back when viewed higher than 1024px
function reposition_topnav() {
        if (jQuery('.nav-horizontal').length > 0) {
            if (jQuery('.nav-horizontal').css('position') == 'relative') {
                if (jQuery('.leftpanel .nav-bracket').length == 2) {
                    jQuery('.nav-horizontal').insertAfter('.nav-bracket:eq(1)');
                } else {
                    if (jQuery('.leftpanel .nav-horizontal').length == 0)
                        jQuery('.nav-horizontal').appendTo('.leftpanelinner');
                }
                jQuery('.nav-horizontal').css({display: 'block'})
                    .addClass('nav-pills nav-stacked nav-bracket');
                jQuery('.nav-horizontal .children').removeClass('dropdown-menu');
                jQuery('.nav-horizontal > li').each(function () {
                    jQuery(this).removeClass('open');
                    jQuery(this).find('a').removeAttr('class');
                    jQuery(this).find('a').removeAttr('data-toggle');
                });
                if (jQuery('.nav-horizontal li:last-child').has('form')) {
                    jQuery('.nav-horizontal li:last-child form').addClass('searchform').appendTo('.topnav');
                    jQuery('.nav-horizontal li:last-child').hide();
                }
            } else {
                if (jQuery('.leftpanel .nav-horizontal').length > 0) {
                    jQuery('.nav-horizontal').removeClass('nav-pills nav-stacked nav-bracket')
                        .appendTo('.topnav');
                    jQuery('.nav-horizontal .children').addClass('dropdown-menu').removeAttr('style');
                    jQuery('.nav-horizontal li:last-child').show();
                    jQuery('.searchform').removeClass('searchform').appendTo('.nav-horizontal li:last-child .dropdown-menu');
                    jQuery('.nav-horizontal > li > a').each(function () {
                        jQuery(this).parent().removeClass('nav-active');
                        if (jQuery(this).parent().find('.dropdown-menu').length > 0) {
                            jQuery(this).attr('class', 'dropdown-toggle');
                            jQuery(this).attr('data-toggle', 'dropdown');
                        }
                    });
                }
            }
        }
    }
function reposition_topnav ( ) { if ( jQuery ( '.nav-horizontal' ) . length > 0 ) { if ( jQuery ( '.nav-horizontal' ) . css ( 'position' ) == 'relative' ) { if ( jQuery ( '.leftpanel .nav-bracket' ) . length == 2 ) { jQuery ( '.nav-horizontal' ) . insertAfter ( '.nav-bracket:eq(1)' ) ; } else { if ( jQuery ( '.leftpanel .nav-horizontal' ) . length == 0 ) jQuery ( '.nav-horizontal' ) . appendTo ( '.leftpanelinner' ) ; } jQuery ( '.nav-horizontal' ) . css ( { display : 'block' } ) . addClass ( 'nav-pills nav-stacked nav-bracket' ) ; jQuery ( '.nav-horizontal .children' ) . removeClass ( 'dropdown-menu' ) ; jQuery ( '.nav-horizontal > li' ) . each ( function ( ) { jQuery ( this ) . removeClass ( 'open' ) ; jQuery ( this ) . find ( 'a' ) . removeAttr ( 'class' ) ; jQuery ( this ) . find ( 'a' ) . removeAttr ( 'data-toggle' ) ; } ) ; if ( jQuery ( '.nav-horizontal li:last-child' ) . has ( 'form' ) ) { jQuery ( '.nav-horizontal li:last-child form' ) . addClass ( 'searchform' ) . appendTo ( '.topnav' ) ; jQuery ( '.nav-horizontal li:last-child' ) . hide ( ) ; } } else { if ( jQuery ( '.leftpanel .nav-horizontal' ) . length > 0 ) { jQuery ( '.nav-horizontal' ) . removeClass ( 'nav-pills nav-stacked nav-bracket' ) . appendTo ( '.topnav' ) ; jQuery ( '.nav-horizontal .children' ) . addClass ( 'dropdown-menu' ) . removeAttr ( 'style' ) ; jQuery ( '.nav-horizontal li:last-child' ) . show ( ) ; jQuery ( '.searchform' ) . removeClass ( 'searchform' ) . appendTo ( '.nav-horizontal li:last-child .dropdown-menu' ) ; jQuery ( '.nav-horizontal > li > a' ) . each ( function ( ) { jQuery ( this ) . parent ( ) . removeClass ( 'nav-active' ) ; if ( jQuery ( this ) . parent ( ) . find ( '.dropdown-menu' ) . length > 0 ) { jQuery ( this ) . attr ( 'class' , 'dropdown-toggle' ) ; jQuery ( this ) . attr ( 'data-toggle' , 'dropdown' ) ; } } ) ; } } } }
This function allows top navigation menu to move to left navigation menu
 when viewed in screens lower than 1024px and will move it back when viewed
 higher than 1024px
This function allows top navigation menu to move to left navigation menu when viewed in screens lower than 1024px and will move it back when viewed higher than 1024px
// top navigation move to left nav // .nav-horizontal will set position to relative when viewed in screen below 1024 // only add to bottom if .nav-horizontal is not yet in the left panel // move nav only when .nav-horizontal is currently from leftpanel // that is viewed from screen size above 1024