telegram_bots/static/js/custom.js
2019-01-11 22:16:02 +03:00

13 lines
309 B
JavaScript

$(document).on('click', '.modal-dismiss', function (e) {
e.preventDefault();
$.magnificPopup.close();
});
$(document).on('click', '.clickable-row', function() {
Turbolinks.visit($(this).data('href'));
});
$(document).on('turbolinks:before-cache', function() {
$('form').trigger('reset')
});