Skip to content

Commit 56c8fe6

Browse files
author
Jessica Wang
committed
cloudStack UI - secondary storage page - remove middle menu item after Delete Secondary Storage action succeeds.
1 parent 1d21522 commit 56c8fe6

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

‎ui/scripts/cloud.core.secondarystorage.js‎

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,10 +168,14 @@ var secondaryStorageActionMap = {
168168
isAsyncJob: false,
169169
dialogBeforeActionFn: doDeleteSecondaryStorage,
170170
inProcessText: "label.action.delete.secondary.storage.processing",
171-
afterActionSeccessFn: function(json, $midmenuItem1, id) {
172-
if(id.toString() == $("#right_panel_content").find("#tab_content_details").find("#id").text()) {
173-
secondaryStorageClearRightPanel();
174-
}
171+
afterActionSeccessFn: function(json, $midmenuItem1, id) {
172+
$midmenuItem1.slideUp("slow", function() {
173+
$(this).remove();
174+
if(id.toString() == $("#right_panel_content").find("#tab_content_details").find("#id").text()) {
175+
clearRightPanel();
176+
secondaryStorageClearRightPanel();
177+
}
178+
});
175179
}
176180
}
177181
}

0 commit comments

Comments
 (0)