andela/eventx

View on GitHub
app/assets/javascripts/bookings_search_form.js

Summary

Maintainability
B
6 hrs
Test Coverage
$(document).ready(function () {
  $('#bookings_search_form input').keyup(function () {
    $.get($('#bookings_search_form').attr('action'), $('#bookings_search_form').serialize(), null, 'script');
    return false;
  });
  $('#preview-event-div a').each(function () {
    $(this).removeAttr('data-target');
    $(this).attr({ 'href': '#' });
  });
  $('#preview-event-div a').click(function (e) {
    e.preventDefault();
  });
});