Browse Source

Update project limits when using input selector

Look for all changes to instance count to update project limits not just a keyup
event.

(cherry picked from commit bf667644fd)

Change-Id: Ic5d1d78176d068d483a282020a8da3833b7ad23e
Closes-bug:1369621
tags/2014.2.2^0
Bradley Jones 4 years ago
parent
commit
889f9d9000
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      horizon/static/horizon/js/horizon.quota.js

+ 2
- 2
horizon/static/horizon/js/horizon.quota.js View File

@@ -402,12 +402,12 @@ horizon.Quota = {
402 402
       };
403 403
 
404 404
       $('#id_flavor').on('keyup change', eventCallback);
405
-      $('#id_count').on('keyup', eventCallback);
405
+      $('#id_count').on('input', eventCallback);
406 406
       $('#id_image_id').on('change', imageChangeCallback);
407 407
     }
408 408
 
409 409
     $(this.user_value_form_inputs).each(function(index, element) {
410
-      $(element).on('keyup', function(evt) {
410
+      $(element).on('input', function(evt) {
411 411
         var progress_element = $('div[data-progress-indicator-for=' + $(evt.target).attr('id') + ']');
412 412
         var integers_in_input = $(evt.target).val().match(/\d+/g);
413 413
         var user_integer;

Loading…
Cancel
Save