From 7e3dcea90cef6ae8a55e24376e0022f7c409a580 Mon Sep 17 00:00:00 2001 From: Mike Rylander Date: Fri, 20 Mar 2015 18:14:11 -0400 Subject: [PATCH] webstaff: Close other context menus before showing this one Signed-off-by: Mike Rylander Signed-off-by: Galen Charlton Signed-off-by: Jason Stephenson --- Open-ILS/web/js/ui/default/staff/cat/services/marcedit.js | 2 ++ 1 file changed, 2 insertions(+) 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 = '