Sha256: a7bc2c30817037385563801c2a2fc07085369f41e9f5623a396a70e30b88ed50

Contents?: true

Size: 841 Bytes

Versions: 20

Compression:

Stored size: 841 Bytes

Contents

$('#class-groups-advanced-search').html('<%= j render("gaku/class_groups/search/form") %>').slide();
$('#class-groups-advanced-search-link').hide();
$('.hide-advanced-search-table').show();


$(document).on('keyup', "#search-class-groups input", function(event) {
  process_search();
});

function process_search()
{
  action = $("#search-class-groups").attr('action');
  form_data = $("#search-class-groups").serialize();
  $.get(action, form_data, null, "script");
  history.pushState(null, "", action + "?" + form_data);
  return false;
}


$(document).on('change', "#search-class-groups select", function(event) {
  process_search();
});



$('body').on('click', '.hide-advanced-search-table', function(event) {
  event.preventDefault();
  $('#class-groups-advanced-search').hide();
  $('#class-groups-advanced-search-link').show();
});

Version data entries

20 entries across 20 versions & 2 rubygems

Version Path
gaku_frontend-0.3.0 app/views/gaku/class_groups/advanced_search.js.erb
gaku_frontend-0.3.0.pre.4 app/views/gaku/class_groups/advanced_search.js.erb
gaku_frontend-0.3.0.pre.3 app/views/gaku/class_groups/advanced_search.js.erb
gaku_frontend-0.3.0.pre.2 app/views/gaku/class_groups/advanced_search.js.erb
gaku_frontend-0.3.0.pre.1 app/views/gaku/class_groups/advanced_search.js.erb
gaku_frontend-0.3.0.pre.0 app/views/gaku/class_groups/advanced_search.js.erb
gaku-0.2.4 frontend/app/views/gaku/class_groups/advanced_search.js.erb
gaku_frontend-0.2.4 app/views/gaku/class_groups/advanced_search.js.erb
gaku-0.2.3 frontend/app/views/gaku/class_groups/advanced_search.js.erb
gaku_frontend-0.2.3 app/views/gaku/class_groups/advanced_search.js.erb
gaku-0.2.2 frontend/app/views/gaku/class_groups/advanced_search.js.erb
gaku_frontend-0.2.2 app/views/gaku/class_groups/advanced_search.js.erb
gaku-0.2.1 frontend/app/views/gaku/class_groups/advanced_search.js.erb
gaku_frontend-0.2.1 app/views/gaku/class_groups/advanced_search.js.erb
gaku-0.2.0 frontend/app/views/gaku/class_groups/advanced_search.js.erb
gaku_frontend-0.2.0 app/views/gaku/class_groups/advanced_search.js.erb
gaku-0.1.1 frontend/app/views/gaku/class_groups/advanced_search.js.erb
gaku_frontend-0.1.1 app/views/gaku/class_groups/advanced_search.js.erb
gaku-0.1.0 frontend/app/views/gaku/class_groups/advanced_search.js.erb
gaku_frontend-0.1.0 app/views/gaku/class_groups/advanced_search.js.erb