Merge branch 'fix_nextcloud_navbar_hiding_menu_clicking_outside' into 'develop'
Fix nextcloud navbar by hiding menu when clicking outside See merge request isard/isard-apps!21
commit
d1c74b23a1
|
@ -12,4 +12,13 @@ jQuery(document).ready(() => {
|
||||||
$('#dropdownMenuApps').toggle()
|
$('#dropdownMenuApps').toggle()
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
$(window).click( (event) => {
|
||||||
|
if (
|
||||||
|
!$(event.target).parents(
|
||||||
|
'#dropdownMenuAppsButton, #dropdownMenuApps'
|
||||||
|
).length
|
||||||
|
) {
|
||||||
|
$('#dropdownMenuApps').hide()
|
||||||
|
}
|
||||||
|
})
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue