Commit 0df8d88b authored by Evren Kutar's avatar Evren Kutar

unimportant comment uncomment

parent bebf4879
...@@ -31,14 +31,14 @@ app.directive('headerNotification', function ($http, $interval, RESTURL) { ...@@ -31,14 +31,14 @@ app.directive('headerNotification', function ($http, $interval, RESTURL) {
templateUrl: 'shared/templates/directives/header-notification.html', templateUrl: 'shared/templates/directives/header-notification.html',
restrict: 'E', restrict: 'E',
replace: true, replace: true,
//link: function ($scope) { link: function ($scope) {
// $interval(function () { //$interval(function () {
// // todo: change url to backend // // todo: change url to backend
// $http.post(RESTURL+"crud").success(function (data) { // $http.get(RESTURL.url+"notify").success(function (data) {
// $scope.notifications = data; // $scope.notifications = data;
// }); // });
// }, 15000); //}, 15000);
//} }
}; };
}); });
...@@ -141,9 +141,11 @@ app.directive('sidebar', ['$location', function () { ...@@ -141,9 +141,11 @@ app.directive('sidebar', ['$location', function () {
replace: true, replace: true,
scope: {}, scope: {},
controller: function ($scope, $rootScope, $http, RESTURL, $location, $timeout) { controller: function ($scope, $rootScope, $http, RESTURL, $location, $timeout) {
$('#side-menu').metisMenu();
$http.get(RESTURL.url + 'menu/').success(function (data) { $http.get(RESTURL.url + 'menu/').success(function (data) {
//$scope.allMenuItems = angular.copy(data.generic); //$scope.allMenuItems = angular.copy(data.generic);
$scope.menuItems = data; $scope.menuItems = data;
debugger;
// $scope.menuItems = []; // angular.copy($scope.allMenuItems); // $scope.menuItems = []; // angular.copy($scope.allMenuItems);
// at start define breadcrumblinks for breadcrumb // at start define breadcrumblinks for breadcrumb
......
...@@ -5,11 +5,11 @@ ...@@ -5,11 +5,11 @@
* (GPLv3). See LICENSE.txt for details. * (GPLv3). See LICENSE.txt for details.
*/ */
//$(function() { $(function() {
//
// $('#side-menu').metisMenu(); $('#side-menu').metisMenu();
//
//}); });
//Loads the correct sidebar on window load, //Loads the correct sidebar on window load,
//collapses the sidebar on window resize. //collapses the sidebar on window resize.
......
...@@ -12,11 +12,14 @@ ...@@ -12,11 +12,14 @@
</li> </li>
<li ng-repeat="(key, item) in menuItems" ng-class="{active: collapseVar == $index+1}">{{dropDown}} <li ng-repeat="(key, item) in menuItems" ng-class="{active: collapseVar == $index+1}">{{dropDown}}
<a href="" ng-click="check($index+1)"><i class="fa fa-wrench fa-fw"></i> {{ key }}<span <a href="" ng-click="check($index+1)">
class="fa arrow"></span></a> <i class="fa fa-wrench fa-fw" ng-class="{'fa-user': key == 'personel'}"></i>
<span class="menu-text">{{ key }}</span>
</a>
<ul class="nav nav-second-level"> <ul class="nav nav-second-level">
<li ng-repeat="v in item"><a ng-href="#/{{v[1]}}" <li ng-repeat="v in item">
ng-click="breadcrumb([key, v[0]])">{{v[0]}}</a></li> <a ng-href="#/{{v[1]}}" ng-click="breadcrumb([key, v[0]])">{{v[0]}}</a>
</li>
</ul> </ul>
<!-- /.nav-second-level --> <!-- /.nav-second-level -->
</li> </li>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment