Fix os-perms-lite to make it compatible to ng-show and ng-hide

This commit is contained in:
Oskar Hahn 2015-10-21 21:21:48 +02:00
parent baaa3f5a7c
commit 1f0ab173d3
2 changed files with 8 additions and 3 deletions

View File

@ -553,3 +553,8 @@ table.cke_dialog_contents textarea {
width: 50px !important;
}
}
/* Hide elements with os-perms-lite */
.os-perms-lite {
display: none !important;
}

View File

@ -310,15 +310,15 @@ angular.module('OpenSlidesApp.users.site', ['OpenSlidesApp.users'])
}])
/*
* Like osPermsLite but does only hide the DOM-Elements
* Like osPerms but does only hide the DOM-Elements
*
* This is the Code from angular.js ngShow.
*/
.directive('osPermsLite', [
'$animate',
function($animate) {
var NG_HIDE_CLASS = 'ng-hide';
var NG_HIDE_IN_PROGRESS_CLASS = 'ng-hide-animate';
var NG_HIDE_CLASS = 'os-perms-lite';
var NG_HIDE_IN_PROGRESS_CLASS = 'os-perms-lite-animate';
return {
restrict: 'A',
multiElement: true,