Commit 6bc64990 authored by Vladimir Baranov's avatar Vladimir Baranov

FIX, rclose#5480. Fix right panel keeps to be visible

parent 07d73273
......@@ -87,11 +87,11 @@ angular.module('ulakbus.auth')
* @returns {*}
*/
authService.logout = function () {
$rootScope.loginAttempt = 0;
WSOps.request({wf: 'logout'}).then(function (data) {
$rootScope.loggedInUser = false;
$rootScope.current_user = true;
$rootScope.$broadcast("user_logged_out");
$log.debug("loggedout");
$location.path("/login");
WSOps.close();
......@@ -104,4 +104,4 @@ angular.module('ulakbus.auth')
};
return authService;
});
\ No newline at end of file
});
......@@ -19,8 +19,8 @@
<div class="dashboard-search-results" ng-show="showResults">
<ul ng-if="students.length > 0">
<li ng-repeat="student in students">
<a role="button">
<span ng-click="select(student, 'ogrenci')">{{student[0]}}</span>
<a role="button" ng-click="select(student, 'ogrenci')">
<span>{{student[0]}}</span>
<i class="fa fa-fw fa-info-circle pull-right" popover-placement="bottom"
uib-popover-template="userPopover.templateUrl"
ng-click="get_info('Ogrenci', student[2])"></i></a>
......@@ -42,8 +42,8 @@
<div class="dashboard-search-results" ng-show="showResults">
<ul ng-if="staffs.length > 0">
<li ng-repeat="staff in staffs">
<a role="button">
<span ng-click="select(staff, 'personel')">{{staff[0]}}</span>
<a role="button" ng-click="select(staff, 'personel')">
<span>{{staff[0]}}</span>
<i class="fa fa-fw fa-info-circle pull-right"
popover-placement="bottom"
uib-popover-template="userPopover.templateUrl"
......@@ -103,4 +103,4 @@
</div>
</div>
<!-- end of dashboard-main-anouncement -->
\ No newline at end of file
<!-- end of dashboard-main-anouncement -->
......@@ -19,8 +19,8 @@
<div class="dashboard-search-results" ng-show="showResults">
<ul ng-if="students.length > 0">
<li ng-repeat="student in students">
<a role="button">
<span ng-click="select(student, 'ogrenci')">{{student[0]}}</span>
<a role="button" ng-click="select(student, 'ogrenci')">
<span>{{student[0]}}</span>
<i class="fa fa-fw fa-info-circle pull-right" popover-placement="bottom"
uib-popover-template="userPopover.templateUrl"
ng-click="get_info('Ogrenci', student[2])"></i></a>
......@@ -42,8 +42,8 @@
<div class="dashboard-search-results" ng-show="showResults">
<ul ng-if="staffs.length > 0">
<li ng-repeat="staff in staffs">
<a role="button">
<span ng-click="select(staff, 'personel')">{{staff[0]}}</span>
<a role="button" ng-click="select(staff, 'personel')">
<span>{{staff[0]}}</span>
<i class="fa fa-fw fa-info-circle pull-right"
popover-placement="bottom"
uib-popover-template="userPopover.templateUrl"
......@@ -103,4 +103,4 @@
</div>
</div>
<!-- end of dashboard-main-anouncement -->
\ No newline at end of file
<!-- end of dashboard-main-anouncement -->
......@@ -459,6 +459,9 @@ angular.module('ulakbus')
delete $scope.selectedMenuItems;
};
// clean selection when user logged out
$rootScope.$on('user_logged_out', $scope.deselectUser);
$rootScope.$watch(function ($rootScope) {
return $rootScope.section;
},
......
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