diff options
author | Bradley Jones <jones.bradley@me.com> | 2014-09-15 16:28:56 +0100 |
---|---|---|
committer | Kieran Spear <kispear@gmail.com> | 2015-01-30 11:50:57 +1100 |
commit | 889f9d9000f5e0512453e15de66aa08a845b451f (patch) | |
tree | 5e624f0e25309077cc636b834316bdda73e3175e | |
parent | be88d144ec92bfc900aa4e695316992818c27ad4 (diff) | |
download | horizon-889f9d9000f5e0512453e15de66aa08a845b451f.tar.gz |
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
-rw-r--r-- | horizon/static/horizon/js/horizon.quota.js | 4 |
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 0bd54e231..4c46c480e 100644 --- a/horizon/static/horizon/js/horizon.quota.js +++ b/horizon/static/horizon/js/horizon.quota.js @@ -402,12 +402,12 @@ horizon.Quota = { }; $('#id_flavor').on('keyup change', eventCallback); - $('#id_count').on('keyup', eventCallback); + $('#id_count').on('input', eventCallback); $('#id_image_id').on('change', imageChangeCallback); } $(this.user_value_form_inputs).each(function(index, element) { - $(element).on('keyup', function(evt) { + $(element).on('input', function(evt) { var progress_element = $('div[data-progress-indicator-for=' + $(evt.target).attr('id') + ']'); var integers_in_input = $(evt.target).val().match(/\d+/g); var user_integer; |