Fix os-perms-lite to make it compatible to ng-show and ng-hide
This commit is contained in:
parent
baaa3f5a7c
commit
1f0ab173d3
@ -553,3 +553,8 @@ table.cke_dialog_contents textarea {
|
||||
width: 50px !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* Hide elements with os-perms-lite */
|
||||
.os-perms-lite {
|
||||
display: none !important;
|
||||
}
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user