From a6a7dc033d2100b357f0656997220603e052d644 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn?= Date: Tue, 30 Jul 2013 15:28:57 +0200 Subject: [PATCH] Bug #2249: Fix period and period number inputs (cherry picked from commit 5c7b370f6be5f4f9167d508bdd31b580f05dafd4) --- src/sunstone/public/js/plugins/oneflow-templates.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/sunstone/public/js/plugins/oneflow-templates.js b/src/sunstone/public/js/plugins/oneflow-templates.js index 37c4b2c228..7f76da4467 100644 --- a/src/sunstone/public/js/plugins/oneflow-templates.js +++ b/src/sunstone/public/js/plugins/oneflow-templates.js @@ -892,8 +892,8 @@ function updateServiceTemplateInfo(request,elem){ '+this.adjust+'\ '+(this.min_adjust_step || "-")+'\ '+this.expression+'\ - '+(this.period || "-")+'\ '+(this.period_number || "-")+'\ + '+(this.period || "-")+'\ '+(this.cooldown || "-")+'\ ' }); @@ -1027,10 +1027,10 @@ function setup_role_tab_content(role_section, html_role_id) { \ \ \ - \ + \ \ \ - \ + \ \ \ \ @@ -1313,8 +1313,8 @@ function generate_json_service_template_from_form() { policy['adjust'] = $("#adjust" ,this).val(); policy['min_adjust_step'] = $("#min_adjust_step" ,this).val(); policy['expression'] = $("#expression" ,this).val(); - policy['period'] = $("#period" ,this).val(); policy['period_number'] = $("#period_number" ,this).val(); + policy['period'] = $("#period" ,this).val(); policy['cooldown'] = $("#cooldown" ,this).val(); // TODO remove empty policies @@ -1435,8 +1435,8 @@ function fillUpUpdateServiceTemplateDialog(request, response){ $("#adjust" ,td).val(this['adjust'] ) $("#min_adjust_step" ,td).val(this['min_adjust_step'] || "" ) $("#expression" ,td).val(unscape(this.expression)) - $("#period" ,td).val(this['period'] || "" ) $("#period_number" ,td).val(this['period_number'] || "") + $("#period" ,td).val(this['period'] || "" ) $("#cooldown" ,td).val(this['cooldown'] || "" ) }) }