Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Zaskrtavani polozek menu v administraci

  • Loading branch information...
commit 8ef8e78deedea3fd2b00bfc853cc09564feba20a 1 parent d891a18
@JakubMrozek authored
Showing with 3 additions and 3 deletions.
  1. +1 −1  public/js/zdrojak.controller.js
  2. +2 −2 views/admin/layout.html
View
2  public/js/zdrojak.controller.js
@@ -260,7 +260,7 @@ module.controller('SummaryCtrl', ['$scope', '$location', 'api', 'basket', functi
*
*/
-module.controller('AppAdminCtrl', ['$scope', function($scope){
+module.controller('MenuAdminCtrl', ['$scope', function($scope){
$scope.$on('$routeChangeSuccess', function ($event, current) {
$scope.menuItem = current.menuItem;
});
View
4 views/admin/layout.html
@@ -6,12 +6,12 @@
<link rel="stylesheet" href="/css/bootstrap.css"/>
<link rel="stylesheet" href="/css/app.css"/>
</head>
-<body ng-controller="AppAdminCtrl">
+<body>
<div class="container">
<div class="navbar">
<div class="navbar-inner">
- <ul id="navigation" class="nav">
+ <ul id="navigation" class="nav" ng-controller="MenuAdminCtrl">
<li ng-show="menuItem == 'orders'" class="active"><a ng-href="/admin/">Objednávky</a></li>
<li ng-hide="menuItem == 'orders'"><a ng-href="/admin/">Objednávky</a></li>
<li><a>Produkty</a></li>
Please sign in to comment.
Something went wrong with that request. Please try again.