Parcourir la source

add keydown to event listener on settings save

causefx il y a 8 ans
Parent
commit
2904c64dc6
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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');