From 14cb46cfbb25538b394f7f7070be114ae1ab7506 Mon Sep 17 00:00:00 2001 From: Nitin Kumar Maharana Date: Tue, 17 Nov 2015 17:38:48 +0530 Subject: [PATCH] CLOUDSTACK-9069: Newly added project is not showing in the drop down until the browser is refreshed. The created or deleted project was added to/deleted from the list but it was not being updated. Now it updates the list at the same time. --- ui/scripts/projects.js | 1 + ui/scripts/ui-custom/projects.js | 2 ++ 2 files changed, 3 insertions(+) diff --git a/ui/scripts/projects.js b/ui/scripts/projects.js index f980f21ac615..3bb9579ca561 100644 --- a/ui/scripts/projects.js +++ b/ui/scripts/projects.js @@ -952,6 +952,7 @@ }, onComplete: function(data) { $(window).trigger('cloudStack.deleteProject', args); + cloudStack.projects.projectSelect.trigger("chosen:updated"); }, getActionFilter: function(args) { return function() { diff --git a/ui/scripts/ui-custom/projects.js b/ui/scripts/ui-custom/projects.js index 97c9b06a794e..2fcb04141529 100644 --- a/ui/scripts/ui-custom/projects.js +++ b/ui/scripts/ui-custom/projects.js @@ -353,6 +353,8 @@ $('