Reviewed-By: Lucio Correia <luciojhc(a)linux.vnet.ibm.com>
On 19/12/2016 11:54, bianca(a)linux.vnet.ibm.com wrote:
From: Bianca Carvalho <bianca(a)linux.vnet.ibm.com>
Changed listVmsAuto function in kimchi.guest_main.js file to not run it
when Migrations modal are opened, so it prevents keyboard input problems
from happenning.
Signed-off-by: Bianca Carvalho <bianca(a)linux.vnet.ibm.com>
---
ui/js/src/kimchi.guest_main.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/ui/js/src/kimchi.guest_main.js b/ui/js/src/kimchi.guest_main.js
index 21ab262..b08b714 100644
--- a/ui/js/src/kimchi.guest_main.js
+++ b/ui/js/src/kimchi.guest_main.js
@@ -789,7 +789,8 @@ kimchi.listVmsAuto = function() {
//Check if the actions button is opened or not,
//if opended stop the reload of the itens until closed
var $isDropdownOpened = $('[name="guest-actions"]
ul.dropdown-menu').is(":visible");
- if (!$isDropdownOpened) {
+ var $isModalOpened = $('#migrate-guest-window').is(":visible");
+ if (!$isDropdownOpened && !$isModalOpened) {
if (kimchi.vmTimeout) {
clearTimeout(kimchi.vmTimeout);
}
--
Lucio Correia