summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBradley Jones <jones.bradley@me.com>2014-09-15 16:28:56 +0100
committerKieran Spear <kispear@gmail.com>2015-01-30 11:50:57 +1100
commit889f9d9000f5e0512453e15de66aa08a845b451f (patch)
tree5e624f0e25309077cc636b834316bdda73e3175e
parentbe88d144ec92bfc900aa4e695316992818c27ad4 (diff)
Update project limits when using input selector2014.2.2
Look for all changes to instance count to update project limits not just a keyup event. (cherry picked from commit bf667644fd7d3da6610c51b624a67f4c51700a57) Change-Id: Ic5d1d78176d068d483a282020a8da3833b7ad23e Closes-bug:1369621
Notes
Notes (review): Verified+2: Jenkins Code-Review+2: Chuck Short <chuck.short@canonical.com> Workflow+1: Chuck Short <chuck.short@canonical.com> Code-Review+2: Lin Hua Cheng <os.lcheng@gmail.com> Workflow+1: Alan Pevec <apevec@gmail.com> Code-Review+1: Tihomir Trifonov <t.trifonov@gmail.com> Code-Review+1: Zhenguo Niu <niuzhenguo@huawei.com> Code-Review+1: Tatiana Ovchinnikova <t.v.ovtchinnikova@gmail.com> Code-Review+1: Nikunj Aggarwal <nikunj.aggarwal@hp.com> Submitted-by: Jenkins Submitted-at: Tue, 03 Feb 2015 03:45:35 +0000 Reviewed-on: https://review.openstack.org/151490 Project: openstack/horizon Branch: refs/heads/stable/juno
-rw-r--r--horizon/static/horizon/js/horizon.quota.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/horizon/static/horizon/js/horizon.quota.js b/horizon/static/horizon/js/horizon.quota.js
index 0bd54e2..4c46c48 100644
--- a/horizon/static/horizon/js/horizon.quota.js
+++ b/horizon/static/horizon/js/horizon.quota.js
@@ -402,12 +402,12 @@ horizon.Quota = {
402 }; 402 };
403 403
404 $('#id_flavor').on('keyup change', eventCallback); 404 $('#id_flavor').on('keyup change', eventCallback);
405 $('#id_count').on('keyup', eventCallback); 405 $('#id_count').on('input', eventCallback);
406 $('#id_image_id').on('change', imageChangeCallback); 406 $('#id_image_id').on('change', imageChangeCallback);
407 } 407 }
408 408
409 $(this.user_value_form_inputs).each(function(index, element) { 409 $(this.user_value_form_inputs).each(function(index, element) {
410 $(element).on('keyup', function(evt) { 410 $(element).on('input', function(evt) {
411 var progress_element = $('div[data-progress-indicator-for=' + $(evt.target).attr('id') + ']'); 411 var progress_element = $('div[data-progress-indicator-for=' + $(evt.target).attr('id') + ']');
412 var integers_in_input = $(evt.target).val().match(/\d+/g); 412 var integers_in_input = $(evt.target).val().match(/\d+/g);
413 var user_integer; 413 var user_integer;