Open menu will disappear after guests list automatically refresh.
Fix it in this patch.
Signed-off-by: Hongliang Wang <hlwang(a)linux.vnet.ibm.com>
---
ui/js/src/kimchi.guest_main.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ui/js/src/kimchi.guest_main.js b/ui/js/src/kimchi.guest_main.js
index ea36d62..acbae15 100644
--- a/ui/js/src/kimchi.guest_main.js
+++ b/ui/js/src/kimchi.guest_main.js
@@ -169,7 +169,7 @@ kimchi.getVmsCurrentConsoleImgs = function() {
kimchi.getOpenMenuVmId = function() {
var result;
- var openMenu = $('#guestList .open:first')
+ var openMenu = $('#guestList div[name="actionmenu"]
.popover:visible');
if(openMenu) {
var li_element=openMenu.closest('li');
result=li_element.attr('id');
@@ -300,7 +300,7 @@ kimchi.createGuestLi = function(vmObject, prevScreenImage, openMenu)
{
//Maintain menu open state
var actionMenu=guestActions.find("div[name=actionmenu]");
if (openMenu) {
- actionMenu.addClass("open");
+ $('.popover', actionMenu).toggle();
}
return result;
--
1.8.1.4
Show replies by date
Applied. Thanks.
Regards,
Aline Manera