cockpit/js/modifiers.js in cpee-2.1.52 vs cockpit/js/modifiers.js in cpee-2.1.53

- old
+ new

@@ -5,24 +5,10 @@ $(document).on('input','#modifiers div.additional input, #modifiers div.additional textarea, #modifiers div.additional [contenteditable]',function(e){ clearTimeout(timer); timer = setTimeout(function(){ do_mod_save(e.target) }, 5000); }); - $(document).on('change','#modifiers div.additional select',function(e){ - clearTimeout(timer); - do_mod_save(e.target); - }); - $(document).on('blur','#modifiers div.additional input, #modifiers div.additional textarea, #modifiers div.additional [contenteditable]',function(e){ - clearTimeout(timer); - do_mod_save(e.target); - }); - $(document).on('keypress','#modifiers div.additional input',function(e){ - if (e.keyCode == 13) { - clearTimeout(timer); - do_mod_save(e.target); - } - }); $(document).on('keypress','#modifiers div.additional [contenteditable]',function(e){ if (e.keyCode == 13) { document.execCommand('insertText', false, '\n'); return false; } @@ -30,9 +16,13 @@ $(document).on('relaxngui_remove', '#modifiers div.additional', function(e){ clearTimeout(timer); do_mod_save(e.target); }); $(document).on('relaxngui_move', '#modifiers div.additional', function(e){ + clearTimeout(timer); + do_mod_save(e.target); + }); + $(document).on('relaxngui_change', '#modifiers div.additional', function(e){ clearTimeout(timer); do_mod_save(e.target); }); });