Sha256: 92a7bf55d12c57249d44ff1a3ebc88238183b6949a2b881589fb469d144587e4
Contents?: true
Size: 1.31 KB
Versions: 17
Compression:
Stored size: 1.31 KB
Contents
// Place all the behaviors and hooks related to the matching controller here. // All this logic will automatically be available in application.js. $(document).ready(function(){ $('.datepicker').datepicker({"format": "dd/mm/yyyy", "weekStart": 1, "autoclose": true}); $('.language_from').click(function(){ var language_from = $.trim($(this).attr('lang_sym')); $.ajax({ type: 'POST', url: Routes.translation_center_set_lang_from_path, data: { lang : language_from }, success: function(){ location.reload(); } }); }); $('#search_activity').click(function(){ $.ajax({ type: 'GET', url: Routes.translation_center_search_activity_path + '.js', data: $('#search_form').serialize() }); return false; }); $('#search_reset').click(function(){ $('#search_form').children('input').each(function(){ $(this).val('') }) $('#search_form').children('select').val(''); $('#search_activity').click(); }); $(document).on('click', '.pagination a', function(){ $.ajax({ type: "GET", url: $(this).attr("href"), dataType: "script" }); return false; }); $("body").on({ ajaxStart: function() { $('#loading').show(); }, ajaxStop: function() { $('#loading').hide(); } }); });
Version data entries
17 entries across 17 versions & 2 rubygems