From: Mike Rylander Date: Fri, 20 Mar 2015 22:14:11 +0000 (-0400) Subject: webstaff: Close other context menus before showing this one X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=7e3dcea90cef6ae8a55e24376e0022f7c409a580;p=evergreen%2Fmasslnc.git webstaff: Close other context menus before showing this one Signed-off-by: Mike Rylander Signed-off-by: Galen Charlton Signed-off-by: Jason Stephenson --- diff --git a/Open-ILS/web/js/ui/default/staff/cat/services/marcedit.js b/Open-ILS/web/js/ui/default/staff/cat/services/marcedit.js index fd51af74a2..65211899f5 100644 --- a/Open-ILS/web/js/ui/default/staff/cat/services/marcedit.js +++ b/Open-ILS/web/js/ui/default/staff/cat/services/marcedit.js @@ -65,6 +65,7 @@ angular.module('egMarcMod', ['egCoreMod', 'ui.bootstrap']) $scope.showContext = function (event) { if ($scope.context_menu_element) { console.log('Reshowing context menu...'); + $('body').trigger('click'); $($scope.context_menu_element).css({ display: 'block', top: event.pageY, left: event.pageX }); $('body').on('click.context_menu',function() { $($scope.context_menu_element).css('display','none'); @@ -75,6 +76,7 @@ angular.module('egMarcMod', ['egCoreMod', 'ui.bootstrap']) if (angular.isArray($scope.item_container)) { // we have a list of values or transforms console.log('Showing context menu...'); + $('body').trigger('click'); var tmpl = '