BookStack/resources/assets/js/global.js

19 lines
418 B
JavaScript
Raw Normal View History

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