Sha256: 536a841f9ac72ecbb20e117a599a53aab08d96a1ec6b04dc2ed197823f90d7c1
Contents?: true
Size: 547 Bytes
Versions: 6
Compression:
Stored size: 547 Bytes
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(){ // when filter changes $('.keys_filter').click(function(){ $('#current_filter').val($(this).attr('id')); $.ajax({ url: Routes.translation_center_category_path(Category.key(), {format: 'js'}), data: { filter: Filter.key() } }); $($('.keys_filter').parent()).removeClass('active'); $($(this).parent()).addClass('active'); }); });
Version data entries
6 entries across 6 versions & 1 rubygems