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) {
templateUrl: 'shared/templates/directives/header-notification.html',
restrict: 'E',
replace: true,
//link: function ($scope) {
// $interval(function () {
// // todo: change url to backend
// $http.post(RESTURL+"crud").success(function (data) {
// $scope.notifications = data;
// });
// }, 15000);
//}
link: function ($scope) {
//$interval(function () {
// // todo: change url to backend
// $http.get(RESTURL.url+"notify").success(function (data) {
// $scope.notifications = data;
// });
//}, 15000);
}
};
});
......@@ -141,9 +141,11 @@ app.directive('sidebar', ['$location', function () {
replace: true,
scope: {},
controller: function ($scope, $rootScope, $http, RESTURL, $location, $timeout) {
$('#side-menu').metisMenu();
$http.get(RESTURL.url + 'menu/').success(function (data) {
//$scope.allMenuItems = angular.copy(data.generic);
$scope.menuItems = data;
debugger;
// $scope.menuItems = []; // angular.copy($scope.allMenuItems);
// at start define breadcrumblinks for breadcrumb
......
......@@ -5,11 +5,11 @@
* (GPLv3). See LICENSE.txt for details.
*/
//$(function() {
//
// $('#side-menu').metisMenu();
//
//});
$(function() {
$('#side-menu').metisMenu();
});
//Loads the correct sidebar on window load,
//collapses the sidebar on window resize.
......
......@@ -12,11 +12,14 @@
</li>
<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
class="fa arrow"></span></a>
<a href="" ng-click="check($index+1)">
<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">
<li ng-repeat="v in item"><a ng-href="#/{{v[1]}}"
ng-click="breadcrumb([key, v[0]])">{{v[0]}}</a></li>
<li ng-repeat="v in item">
<a ng-href="#/{{v[1]}}" ng-click="breadcrumb([key, v[0]])">{{v[0]}}</a>
</li>
</ul>
<!-- /.nav-second-level -->
</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