[PATCH conductor] BZ 783904 PA quota when updated to unlimited, text should be automatically set to Unlimited.
Jozef Zigmund
jzigmund at redhat.com
Mon Feb 6 18:15:07 UTC 2012
On Monday 06 February 2012 19:04:02 you wrote:
> From: Jozef Zigmund <jzigmund at redhat.com>
>
> https://bugzilla.redhat.com/show_bug.cgi?id=783904
> ---
> .../provider_accounts/_provider_form.html.haml | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/app/views/provider_accounts/_provider_form.html.haml
> b/src/app/views/provider_accounts/_provider_form.html.haml index
> 56b7e74..90c2f47 100644
> --- a/src/app/views/provider_accounts/_provider_form.html.haml
> +++ b/src/app/views/provider_accounts/_provider_form.html.haml
> @@ -21,11 +21,11 @@
> = label_tag t("quotas.quota")
> = text_field :quota, :maximum_running_instances, :title =>
> t('provider_accounts.form.quota_instances'), :value =>
> @quota.maximum_running_instances ||
> t('provider_accounts.properties.unlimited'), :id => "quota_instances" (
> - %button.linkbutton.nospace{ :type => 'button', :onclick =>
> "set_unlimited_quota(\"quota_instances\");" }<> +
> %button.linkbutton.nospace{ :type => 'button', :onclick =>
> "set_unlimited_quota(\"quota_instances\");" } =
> t('provider_accounts.form.unlimited_quota')
> )
>
> :javascript
>
> function set_unlimited_quota(elem_id) {
> - $("#" + elem_id)[0].value =
> t('provider_accounts.properties.unlimited'); + $("#" + elem_id)[0].value
> = "#{t('provider_accounts.properties.unlimited')}"; }
Self-acked & pushed.
More information about the aeolus-devel
mailing list