close menu regardless of success

pull/5410/head
Jens Ulferts 8 years ago
parent 1b8ab2178d
commit 2c5bfab567
No known key found for this signature in database
GPG Key ID: 3CAA4B1182CF5308
  1. 7
      frontend/app/components/context-menus/settings-menu/settings-menu.controller.ts

@ -108,20 +108,21 @@ function SettingsDropdownMenuController($scope:IMyScope,
$scope.saveQuery = function (event:JQueryEventObject) {
event.stopPropagation();
if (!query.id && allowQueryAction(event, 'updateImmediately')) {
closeAnyContextMenu();
saveModal.activate();
} else if (query.id && allowQueryAction(event, 'updateImmediately')) {
closeAnyContextMenu();
wpListService.save();
}
closeAnyContextMenu();
};
$scope.deleteQuery = function (event:JQueryEventObject) {
event.stopPropagation();
if (allowQueryAction(event, 'delete') && deleteConfirmed()) {
wpListService.delete();
closeAnyContextMenu();
}
closeAnyContextMenu();
};
// Modals

Loading…
Cancel
Save