Return-Path: X-Original-To: apmail-cloudstack-commits-archive@www.apache.org Delivered-To: apmail-cloudstack-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 452C3111C1 for ; Mon, 5 May 2014 08:53:26 +0000 (UTC) Received: (qmail 44843 invoked by uid 500); 5 May 2014 08:53:25 -0000 Delivered-To: apmail-cloudstack-commits-archive@cloudstack.apache.org Received: (qmail 44613 invoked by uid 500); 5 May 2014 08:53:24 -0000 Mailing-List: contact commits-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list commits@cloudstack.apache.org Received: (qmail 44441 invoked by uid 99); 5 May 2014 08:53:23 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 May 2014 08:53:23 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 71F6F90D9FE; Mon, 5 May 2014 08:53:23 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: sanjaytripathi@apache.org To: commits@cloudstack.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: git commit: updated refs/heads/master to 6c44c06 Date: Mon, 5 May 2014 08:53:23 +0000 (UTC) Repository: cloudstack Updated Branches: refs/heads/master cc92f3bbe -> 6c44c0661 CLOUDSTACK-6479: Strict and Preferred modes should only be allowed in Implict Dedication Planner Service Offerings. Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/6c44c066 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/6c44c066 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/6c44c066 Branch: refs/heads/master Commit: 6c44c0661dae0e9de4ed53fad8951e72dbbd3335 Parents: cc92f3b Author: Sanjay Tripathi Authored: Mon May 5 14:24:20 2014 +0530 Committer: Sanjay Tripathi Committed: Mon May 5 14:26:44 2014 +0530 ---------------------------------------------------------------------- ui/scripts/configuration.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/6c44c066/ui/scripts/configuration.js ---------------------------------------------------------------------- diff --git a/ui/scripts/configuration.js b/ui/scripts/configuration.js index 1654095..704f4dd 100644 --- a/ui/scripts/configuration.js +++ b/ui/scripts/configuration.js @@ -353,8 +353,15 @@ args.response.success({ data: items }); - - + args.$select.change(function() { + var $form = $(this).closest('form'); + var $fields = $form.find('.field'); + if ($(this).val() == "ImplicitDedicationPlanner") { + $form.find('[rel=plannerMode]').css('display', 'block'); + } else { + $form.find('[rel=plannerMode]').hide(); + } + }); } }); }