Skip to content

Commit 4cae1b1

Browse files
committed
Fix problems with menu collapse
1 parent 9ff620b commit 4cae1b1

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/client/js/controllers/nav.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ module fng.controllers {
1313
$rootScope.navScope = $scope; // Lets plugins access menus
1414
clearContextMenu();
1515

16+
$scope.toggleCollapsed = function() {
17+
$scope.collapsed = !$scope.collapsed;
18+
};
19+
1620
/* isCollapsed and showShortcuts are used to control how the menu is displayed in a responsive environment and whether the shortcut keystrokes help should be displayed */
1721
$scope.isCollapsed = true;
1822
$scope.showShortcuts = false;

website/app/partials/navbar.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<div class="visible-lg visible-desktop pull-right col-md-2 span2"></div>
88
<!-- Leave some space for github flash -->
99
<div class="navbar-header">
10-
<button type="button" class="navbar-toggle collapsed btn btn-navbar" data-toggle="collapse" data-target=".navbar-collapse" ng-click="isCollapsed = !isCollapsed">
10+
<button type="button" class="navbar-toggle collapsed btn btn-navbar" data-toggle="collapse" data-target=".navbar-collapse" ng-click="toggleCollapsed()">
1111
<span class="glyphicon glyphicon-bar icon-bar"></span>
1212
<span class="glyphicon glyphicon-bar icon-bar"></span>
1313
<span class="glyphicon glyphicon-bar icon-bar"></span>

0 commit comments

Comments
 (0)