Fix label on primary storage required 'path' field
This commit is contained in:
bfederle 2012-05-10 14:22:07 -07:00
parent 6b1f87fb80
commit 786c92591d
1 changed files with 7 additions and 4 deletions

View File

@ -914,6 +914,9 @@
var $form = $(this).closest('form');
var protocol = $(this).val();
$form.find('[rel=path]').find(".name").find("label").html('<span class=\"field-required\">*</span>Path:');
if(protocol == null)
return;
@ -926,7 +929,7 @@
//$('li[input_group="nfs"]', $dialogAddPool).show();
$form.find('[rel=path]').css('display', 'block');
//$dialogAddPool.find("#add_pool_path_container").find("label").text(g_dictionary["label.path"]+":");
$form.find('[rel=path]').find(".name").find("label").text("Path:");
//$form.find('[rel=path]').find(".name").find("label").text("Path:");
//$('li[input_group="iscsi"]', $dialogAddPool).hide();
$form.find('[rel=iqn]').hide();
@ -948,7 +951,7 @@
//$('li[input_group="nfs"]', $dialogAddPool).show();
$form.find('[rel=path]').css('display', 'block');
//$dialogAddPool.find("#add_pool_path_container").find("label").text(g_dictionary["label.path"]+":");
$form.find('[rel=path]').find(".name").find("label").text("Path:");
//$form.find('[rel=path]').find(".name").find("label").text("Path:");
//$('li[input_group="iscsi"]', $dialogAddPool).hide();
$form.find('[rel=iqn]').hide();
@ -970,7 +973,7 @@
//$('li[input_group="nfs"]', $dialogAddPool).show();
$form.find('[rel=path]').css('display', 'block');
//$dialogAddPool.find("#add_pool_path_container").find("label").text(g_dictionary["label.SR.name"]+":");
$form.find('[rel=path]').find(".name").find("label").text("SR Name-Label:");
$form.find('[rel=path]').find(".name").find("label").html("<span class=\"field-required\">*</span>SR Name-Label:");
//$('li[input_group="iscsi"]', $dialogAddPool).hide();
$form.find('[rel=iqn]').hide();
@ -1051,7 +1054,7 @@
//$('li[input_group="nfs"]', $dialogAddPool).show();
$form.find('[rel=path]').css('display', 'block');
$form.find('[rel=path]').find(".name").find("label").text("Path:");
//$form.find('[rel=path]').find(".name").find("label").text("Path:");
//$('li[input_group="iscsi"]', $dialogAddPool).hide();
$form.find('[rel=iqn]').hide();