telegram_bots/static/js/custom.js

13 lines
309 B
JavaScript
Raw Normal View History

2019-01-11 19:16:01 +00:00
$(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')
});