Sha256: b1af6be045200d1ae5c0641983673c84399d6f0f55ac8f90c6dc6aba589c09a1

Contents?: true

Size: 767 Bytes

Versions: 7

Compression:

Stored size: 767 Bytes

Contents

var Nav = angular.module("Navigation", []);

add_dependency("Navigation");

Nav.controller("NavigationController", ["$rootScope", function($rootScope){
    var that = this;

    $rootScope.show_sidebar = true;

    this.toggle_sidebar = function() {

        if ($(window).width() <= 992) {
            $('.row-offcanvas').toggleClass('active');
            $('.left-side').removeClass("collapse-left");
            $(".right-side").removeClass("strech");
            $('.row-offcanvas').toggleClass("relative");
        } else {
            //Else, enable content streching
            $('.left-side').toggleClass("collapse-left");
            $(".right-side").toggleClass("strech");
        }
        $rootScope.show_sidebar = !$rootScope.show_sidebar;
    };
}]);

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
dashstrap-1.1.0 app/assets/javascripts/dashstrap/modules/navigation.js
dashstrap-1.0.0 app/assets/javascripts/dashstrap/modules/navigation.js
dashstrap-0.2.3 app/assets/javascripts/dashstrap/modules/navigation.js
dashstrap-0.2.2 app/assets/javascripts/dashstrap/modules/navigation.js
dashstrap-0.2.1 app/assets/javascripts/dashstrap/modules/navigation.js
dashstrap-0.2.0 app/assets/javascripts/dashstrap/modules/navigation.js
dashstrap-0.1.0 app/assets/javascripts/dashstrap/modules/navigation.js