From 65ecbcae0bf003964af9abaa437f695c19dbe2a9 Mon Sep 17 00:00:00 2001 From: Pranav Saxena Date: Thu, 5 Apr 2012 14:39:27 +0530 Subject: [PATCH] Bug : 13582 UI freezes because of pressing Escape key --- ui/scripts/ui-custom/instanceWizard.js | 1 + ui/scripts/ui-custom/projects.js | 6 ++++-- ui/scripts/ui-custom/zoneWizard.js | 1 + 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ui/scripts/ui-custom/instanceWizard.js b/ui/scripts/ui-custom/instanceWizard.js index 4cb42477c80..8da07c0f915 100644 --- a/ui/scripts/ui-custom/instanceWizard.js +++ b/ui/scripts/ui-custom/instanceWizard.js @@ -714,6 +714,7 @@ title: _l('label.vm.add'), width: 800, height: 570, + closeOnEscape: false, zIndex: 5000 }) .closest('.ui-dialog').overlay(); diff --git a/ui/scripts/ui-custom/projects.js b/ui/scripts/ui-custom/projects.js index df773e66d7f..cadc963eb2e 100644 --- a/ui/scripts/ui-custom/projects.js +++ b/ui/scripts/ui-custom/projects.js @@ -466,14 +466,14 @@ return $review; }); - $(':ui-dialog').dialog('option', 'position', 'center'); + $(':ui-dialog').dialog('option', 'position', 'center',closeOnEscape: false); }); $laterButton.html(_l('label.close')).appendTo($userManagement); return $userManagement; }); - $(':ui-dialog').dialog('option', 'position', 'center'); + $(':ui-dialog').dialog('option', 'position', 'center',closeOnEscape: false); return false; }); @@ -596,6 +596,7 @@ $selector.dialog({ title: _l('label.select.project'), dialogClass: 'project-selector-dialog', + closeOnEscape: false , width: 420 }).closest('.ui-dialog').overlay(); } @@ -656,6 +657,7 @@ var addProject = function() { pageElems.newProjectForm().dialog({ title: 'New Project', + closeOnEscape: false, width: 760 }).closest('.ui-dialog').overlay(); }; diff --git a/ui/scripts/ui-custom/zoneWizard.js b/ui/scripts/ui-custom/zoneWizard.js index 5fad097bff6..9e09829656c 100644 --- a/ui/scripts/ui-custom/zoneWizard.js +++ b/ui/scripts/ui-custom/zoneWizard.js @@ -1197,6 +1197,7 @@ return $wizard.dialog({ title: 'Add zone', + closeOnEscape: false, width: 750, height: 665, zIndex: 5000,