Skip to content

Commit

Permalink
use angular package bootstrap-ui for expanding, fixes #4
Browse files Browse the repository at this point in the history
  • Loading branch information
lars committed Jun 15, 2014
1 parent 9e663c5 commit 8389aac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<header class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-navbar-collapse-1">
<button type="button" class="navbar-toggle" ng-click="navbarCollapsed = !navbarCollapsed">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
Expand All @@ -38,8 +38,8 @@
</a>
</div>

<div class="collapse navbar-collapse" id="bs-navbar-collapse-1">
<ul class="nav navbar-nav">
<div class="navbar-collapse" collapse="navbarCollapsed">
<ul class="nav navbar-nav" ng-click="navbarCollapsed = !navbarCollapsed">
<li ng-class="{active:isActive('/hubs')}">
<a href="#/hubs">
<span class="glyphicon glyphicon-home"></span>
Expand Down
4 changes: 3 additions & 1 deletion app/js/controllers/main.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
'use strict';

EiskaltApp.controller('MainCtrl', function ($scope, $location, $interval, settings, EiskaltRPC) {
$scope.navbarCollapsed = true;

EiskaltRPC.ShowVersion().success(function (data) {
$scope.version = {
client: settings.version,
Expand Down Expand Up @@ -29,4 +31,4 @@ EiskaltApp.controller('MainCtrl', function ($scope, $location, $interval, settin
$scope.refreshShare = function () {
EiskaltRPC.RefreshShare().success(refreshData);
}
});
});

0 comments on commit 8389aac

Please sign in to comment.