mirror of
https://github.com/ansible/awx.git
synced 2026-05-22 08:17:39 -02:30
Add mobile menu styles and click handlers
Signed-off-by: Marliana Lara <mlara@redhat.com>
This commit is contained in:
@@ -4,14 +4,24 @@ function atSideNavLink (scope, element, attrs, ctrl) {
|
||||
scope.layoutVm = ctrl;
|
||||
}
|
||||
|
||||
function AtSideNavController () {
|
||||
const vm = this || {};
|
||||
function AtSideNavController ($scope) {
|
||||
let vm = this || {};
|
||||
|
||||
vm.isExpanded = false;
|
||||
|
||||
vm.toggleExpansion = () => {
|
||||
vm.isExpanded = !vm.isExpanded;
|
||||
};
|
||||
}
|
||||
|
||||
document.body.onclick = (e) => {
|
||||
if ($(e.target).parents(".at-Layout-side").length === 0) {
|
||||
vm.isExpanded = false;
|
||||
}
|
||||
}
|
||||
|
||||
$scope.$on('$locationChangeStart', function(event) {
|
||||
vm.isExpanded = false;
|
||||
});
|
||||
}
|
||||
|
||||
function atSideNav () {
|
||||
|
||||
Reference in New Issue
Block a user