Sha256: d02b4d6bd95d810fb5da186c84b85e69522406827ad8122cf82ceff38fc5071f
Contents?: true
Size: 820 Bytes
Versions: 133
Compression:
Stored size: 820 Bytes
Contents
//(function($) { // $.fn.AddOnChange = function(settings) { // function add_onchange(all_obj) { // $(all_obj).each(function () { // $(this).change(function () { // form_submit_watcher(); // }); // }); // } // // var submit_timestamp = {}; function form_submit_watcher(watched_form_id) { // console.log(watched_form_id); // console.log(submit_timestamp) //ladas_loading_show(); clearTimeout(submit_timestamp[watched_form_id]); submit_timestamp[watched_form_id] = setTimeout(function() { form_submit(watched_form_id) }, 1000); } function form_submit(watched_form_id) { // console.log("submiting") // console.log(watched_form_id); $("#"+watched_form_id).submit(); } // //})(jQuery);
Version data entries
133 entries across 133 versions & 1 rubygems