Sha256: ae29c53d23e42f8ef0022cc93d3f0fd5377c84341a04ea04574f9e35216fc28f

Contents?: true

Size: 732 Bytes

Versions: 2

Compression:

Stored size: 732 Bytes

Contents

$(document).ready(function(){
  $('.filter-trigger').on('click touchstart', function(e){
    $('.filter-panel').toggleClass('is-visible');
    $('.filter-screen').toggleClass('is-visible');
    e.preventDefault();
  });

  $('.filter-screen').on('click touchstart', function(e){
    $('.filter-panel').toggleClass('is-visible');
    $('.filter-screen').toggleClass('is-visible');
    e.preventDefault();
  });
});


$(function() {
  $('.predicate-select select').on('change', function() {
    var condition = $(this).val();
    input = $(this).parent().parent().find('.value input');
    id_tokens = input.attr('id').split('_');
    name = input.data('field');
    input.attr('name', "q[" + name + "_" + condition + "]");
  });
});

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
app_kit-0.0.2 app/assets/javascripts/app_kit/filter_panel.js
app_kit-0.0.1 app/assets/javascripts/app_kit/filter_panel.js