mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-11-28 11:43:40 +08:00
19 lines
418 B
JavaScript
19 lines
418 B
JavaScript
$(function () {
|
|
|
|
// Notification hiding
|
|
$('.notification').click(function () {
|
|
$(this).fadeOut(100);
|
|
|
|
});
|
|
|
|
// Dropdown toggles
|
|
$('[data-dropdown]').dropDown();
|
|
|
|
// Chapter page list toggles
|
|
$('.chapter-toggle').click(function(e) {
|
|
e.preventDefault();
|
|
$(this).toggleClass('open');
|
|
$(this).closest('.chapter').find('.inset-list').slideToggle(180);
|
|
});
|
|
|
|
}); |