You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by bf...@apache.org on 2012/06/26 22:43:38 UTC
git commit: CS-15290: Fix 'Path' field validation
Updated Branches:
refs/heads/master dfcded673 -> 4e9a97177
CS-15290: Fix 'Path' field validation
Original patch by: olga.smola
reviewed-by: brian
Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/4e9a9717
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/4e9a9717
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/4e9a9717
Branch: refs/heads/master
Commit: 4e9a97177f5b8cb94d18139e0513b870ede895a7
Parents: dfcded6
Author: bfederle <bf...@gmail.com>
Authored: Tue Jun 26 13:43:16 2012 -0700
Committer: bfederle <bf...@gmail.com>
Committed: Tue Jun 26 13:43:30 2012 -0700
----------------------------------------------------------------------
ui/scripts/system.js | 14 +++++++++-----
1 files changed, 9 insertions(+), 5 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/4e9a9717/ui/scripts/system.js
----------------------------------------------------------------------
diff --git a/ui/scripts/system.js b/ui/scripts/system.js
index 541aabc..6d3b765 100644
--- a/ui/scripts/system.js
+++ b/ui/scripts/system.js
@@ -7535,7 +7535,8 @@
//$('li[input_group="nfs"]', $dialogAddPool).show();
$form.find('.form-item[rel=path]').css('display', 'inline-block');
//$dialogAddPool.find("#add_pool_path_container").find("label").text(g_dictionary["label.path"]+":");
- $form.find('.form-item[rel=path]').find(".name").find("label").text("Path:");
+ var $required = $form.find('.form-item[rel=path]').find(".name").find("label span");
+ $form.find('.form-item[rel=path]').find(".name").find("label").text("Path:").prepend($required);
//$('li[input_group="iscsi"]', $dialogAddPool).hide();
$form.find('.form-item[rel=iqn]').hide();
@@ -7557,7 +7558,8 @@
//$('li[input_group="nfs"]', $dialogAddPool).show();
$form.find('.form-item[rel=path]').css('display', 'inline-block');
//$dialogAddPool.find("#add_pool_path_container").find("label").text(g_dictionary["label.path"]+":");
- $form.find('.form-item[rel=path]').find(".name").find("label").text("Path:");
+ var $required = $form.find('.form-item[rel=path]').find(".name").find("label span");
+ $form.find('.form-item[rel=path]').find(".name").find("label").text("Path:").prepend($required);
//$('li[input_group="iscsi"]', $dialogAddPool).hide();
$form.find('.form-item[rel=iqn]').hide();
@@ -7578,8 +7580,9 @@
//$('li[input_group="nfs"]', $dialogAddPool).show();
$form.find('.form-item[rel=path]').css('display', 'inline-block');
- //$dialogAddPool.find("#add_pool_path_container").find("label").text(g_dictionary["label.SR.name"]+":");
- $form.find('.form-item[rel=path]').find(".name").find("label").text("SR Name-Label:");
+ //$dialogAddPool.find("#add_pool_path_container").find("label").text(g_dictionary["label.SR.name"]+":");
+ var $required = $form.find('.form-item[rel=path]').find(".name").find("label span");
+ $form.find('.form-item[rel=path]').find(".name").find("label").text("SR Name-Label:").prepend($required);
//$('li[input_group="iscsi"]', $dialogAddPool).hide();
$form.find('.form-item[rel=iqn]').hide();
@@ -7660,7 +7663,8 @@
//$('li[input_group="nfs"]', $dialogAddPool).show();
$form.find('.form-item[rel=path]').css('display', 'inline-block');
- $form.find('.form-item[rel=path]').find(".name").find("label").text("Path:");
+ var $required = $form.find('.form-item[rel=path]').find(".name").find("label span");
+ $form.find('.form-item[rel=path]').find(".name").find("label").text("Path:").prepend($required);
//$('li[input_group="iscsi"]', $dialogAddPool).hide();
$form.find('.form-item[rel=iqn]').hide();