BookStack/resources/assets/js/global.js

19 lines
421 B
JavaScript
Raw Normal View History

$(function () {
// Notification hiding
$('.notification').click(function () {
$(this).fadeOut(100);
2015-09-04 16:16:58 +00:00
});
// Dropdown toggles
$('[data-dropdown]').dropDown();
// Chapter page list toggles
$('.chapter-toggle').click(function(e) {
e.preventDefault();
$(this).toggleClass('open');
$(this).closest('.book-child').find('.inset-list').slideToggle(180);
});
});