From e32c784042263412ff0f13aa6df3ca9e9e3bfad5 Mon Sep 17 00:00:00 2001 From: Hector Sanjuan Date: Thu, 27 Sep 2012 17:38:01 +0200 Subject: [PATCH] Several small fixes for UIs: * Fixed bug affecting only IE that prevented images/vnets from being selected in IE in Self-Service * Fixed IE login to sunstone * Fixed menu with in Sunstone so that french (and other long translations) translation doesn't push the + icon to a second line * Fixed uglyness in datastore create dialog when labels go multiline * Fixed opening extended info when changing image type in Images list (cherry picked from commit 7d6366a6620df82fa3f7f178208deee53783b08a) --- .../occi/lib/ui/public/js/plugins/compute.js | 18 ++++++++---------- src/sunstone/public/js/layout.js | 2 +- .../public/js/plugins/datastores-tab.js | 4 ++-- src/sunstone/public/js/plugins/images-tab.js | 2 +- src/sunstone/public/js/sunstone-util.js | 12 +++++++----- src/sunstone/views/login.erb | 5 +++++ 6 files changed, 24 insertions(+), 19 deletions(-) diff --git a/src/cloud/occi/lib/ui/public/js/plugins/compute.js b/src/cloud/occi/lib/ui/public/js/plugins/compute.js index 98256594d4..6a67129b83 100644 --- a/src/cloud/occi/lib/ui/public/js/plugins/compute.js +++ b/src/cloud/occi/lib/ui/public/js/plugins/compute.js @@ -894,20 +894,18 @@ function popUpCreateVMDialog(){ $('#network_box,#disk_box',dialog).change(function(){ - $(this).val(""); - return false; - }); - - $('#network_box option,#disk_box option',dialog).click(function(){ - var clicked = $(this).attr('clicked'); + var option = $('option:selected', this); + var clicked = option.attr('clicked'); if (clicked){//unbold, unmark - $(this).text($(this).text().replace(/☒/g,'☐')); - $(this).removeAttr('clicked'); + option.text(option.text().replace(/☒/g,'☐')); + option.removeAttr('clicked'); } else {//bold,mark - $(this).text($(this).text().replace(/☐/g,'☒')); - $(this).attr('clicked','clicked'); + option.text(option.text().replace(/☐/g,'☒')); + option.attr('clicked','clicked'); } + + $(this).val(""); return false; }); diff --git a/src/sunstone/public/js/layout.js b/src/sunstone/public/js/layout.js index 7ebae4c5ad..049e895644 100644 --- a/src/sunstone/public/js/layout.js +++ b/src/sunstone/public/js/layout.js @@ -128,7 +128,7 @@ $(document).ready(function () { applyDefaultStyles: false , center__paneSelector: ".outer-center" , west__paneSelector: ".outer-west" - , west__size: 200 + , west__size: 210 , north__size: 26 , south__size: 26 , spacing_open: 0 // ALL panes diff --git a/src/sunstone/public/js/plugins/datastores-tab.js b/src/sunstone/public/js/plugins/datastores-tab.js index 6e9f886618..931de0179a 100644 --- a/src/sunstone/public/js/plugins/datastores-tab.js +++ b/src/sunstone/public/js/plugins/datastores-tab.js @@ -73,8 +73,8 @@ var create_datastore_tmpl = \ \ \ -
\ - \ +
\ + \