From f65ef9f75cf0f82edfb841cec857d2ad89ce91d0 Mon Sep 17 00:00:00 2001 From: Jared Tabor Date: Fri, 3 Nov 2017 15:11:54 -0700 Subject: [PATCH] prolong removing the delete modal until after the list refreshes, post-delete --- .../groups/list/groups-list.controller.js | 16 ++++++++++------ .../related/groups/list/groups-list.partial.html | 2 +- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/awx/ui/client/src/inventories-hosts/inventories/related/groups/list/groups-list.controller.js b/awx/ui/client/src/inventories-hosts/inventories/related/groups/list/groups-list.controller.js index 99b1090e2d..78a51d2777 100644 --- a/awx/ui/client/src/inventories-hosts/inventories/related/groups/list/groups-list.controller.js +++ b/awx/ui/client/src/inventories-hosts/inventories/related/groups/list/groups-list.controller.js @@ -141,9 +141,11 @@ } else { $state.go($state.current, reloadListStateParams, {reload: true}); } - $('#group-delete-modal').modal('hide'); - $('body').removeClass('modal-open'); - $('.modal-backdrop').remove(); + setTimeout(function(){ + $('#group-delete-modal').modal('hide'); + $('body').removeClass('modal-open'); + $('.modal-backdrop').remove(); + }, 1000); }); break; default: @@ -153,9 +155,11 @@ } else { $state.go($state.current, reloadListStateParams, {reload: true}); } - $('#group-delete-modal').modal('hide'); - $('body').removeClass('modal-open'); - $('.modal-backdrop').remove(); + setTimeout(function(){ + $('#group-delete-modal').modal('hide'); + $('body').removeClass('modal-open'); + $('.modal-backdrop').remove(); + }, 1000); }); } }; diff --git a/awx/ui/client/src/inventories-hosts/inventories/related/groups/list/groups-list.partial.html b/awx/ui/client/src/inventories-hosts/inventories/related/groups/list/groups-list.partial.html index ec594610a6..23579b2285 100644 --- a/awx/ui/client/src/inventories-hosts/inventories/related/groups/list/groups-list.partial.html +++ b/awx/ui/client/src/inventories-hosts/inventories/related/groups/list/groups-list.partial.html @@ -5,7 +5,7 @@