Procházet zdrojové kódy

add keydown to event listener on settings save

causefx před 8 roky
rodič
revize
2904c64dc6
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      js/custom.js

+ 1 - 1
js/custom.js

@@ -971,7 +971,7 @@ $(document).on('focusout', 'input.pick-a-color', function(e) {
         $(this).attr('style','');
         $(this).attr('style','');
     }
     }
 });
 });
-$(document).on('change', '.addFormTick :input', function(e) {
+$(document).on('change keydown', '.addFormTick :input', function(e) {
     $(this).attr('data-changed', true);
     $(this).attr('data-changed', true);
     $(this).closest('.form-group').addClass('has-success');
     $(this).closest('.form-group').addClass('has-success');
     var formID = $(this).closest('form').attr('id');
     var formID = $(this).closest('form').attr('id');