From ac53d33665e4a04145e299df7a2e25ccecbf8956 Mon Sep 17 00:00:00 2001 From: Tino Vazquez Date: Wed, 11 Sep 2013 19:30:09 +0200 Subject: [PATCH] Bug #2314: Change deprecated RANK and REQUIREMENTS for their SCHED_ equivalents --- .../public/js/plugins/templates-tab.js | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/sunstone/public/js/plugins/templates-tab.js b/src/sunstone/public/js/plugins/templates-tab.js index beb073f0e7..4603ecc0df 100644 --- a/src/sunstone/public/js/plugins/templates-tab.js +++ b/src/sunstone/public/js/plugins/templates-tab.js @@ -3475,10 +3475,10 @@ function setupCreateTemplateDialog(){ '
'+ '
'+ '
'+ - ''+ + ''+ '
'+ '
'+ - ''+ + ''+ '
'+ '
'+ '
'+tr("Boolean expression that rules out provisioning hosts from list of machines suitable to run this VM")+'.
'+ @@ -3509,10 +3509,10 @@ function setupCreateTemplateDialog(){ '
'+ '
'+ '
'+ - ''+ + ''+ '
'+ '
'+ - ''+ + ''+ '
'+ '
'+ '
'+tr("This field sets which attribute will be used to sort the suitable hosts for this VM")+'.
'+ @@ -3703,7 +3703,7 @@ function setupCreateTemplateDialog(){ }); $("input[name='rank_select']").change(function(){ - $("#RANK", dialog).val(this.value); + $("#SCHED_RANK", dialog).val(this.value); }); var generate_requirements = function() { @@ -3717,7 +3717,7 @@ function setupCreateTemplateDialog(){ req_string.push('CLUSTER_ID=\\"'+key+'\\"'); }); - $('#REQUIREMENTS', dialog).val(req_string.join(" | ")); + $('#SCHED_REQUIREMENTS', dialog).val(req_string.join(" | ")); }; } @@ -4681,7 +4681,7 @@ function fillTemplatePopUp(request, response){ // REQUIREMENTS & RANK // - var req = template.REQUIREMENTS; + var req = template.SCHED_REQUIREMENTS; var req_section = $('li#schedulingTab', $create_template_dialog); if (req) { @@ -4764,12 +4764,12 @@ function fillTemplatePopUp(request, response){ }); } - $('input#REQUIREMENTS', req_section).val(req); + $('input#SCHED_REQUIREMENTS', req_section).val(req); - delete template.REQUIREMENTS; + delete template.SCHED_REQUIREMENTS; } - var rank = template.RANK; + var rank = template.SCHED_RANK; if (rank) { var striping_regexp = /-RUNNING_VMS/; @@ -4786,9 +4786,9 @@ function fillTemplatePopUp(request, response){ $('input#loadawareRadio', req_section).click() } - $('input#RANK', req_section).val(rank); + $('input#SCHED_RANK', req_section).val(rank); - delete template.RANK; + delete template.SCHED_RANK; } //