mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-18 07:01:58 +08:00
20 lines
695 B
JavaScript
20 lines
695 B
JavaScript
window.bwipjs = require('bwip-js');
|
|
window.Decimal = require('decimal.js');
|
|
|
|
$(document).on('click', '.sci--layout--menu-item[data-submenu=true]', (e) => {
|
|
const item = $(e.currentTarget);
|
|
const caret = item.find('.show-submenu');
|
|
const submenu = item.next();
|
|
e.preventDefault();
|
|
if (submenu.attr('data-collapsed') === 'true') {
|
|
caret.removeClass('fa-caret-up').addClass('fa-caret-down');
|
|
submenu.attr('data-collapsed', false);
|
|
} else {
|
|
caret.removeClass('fa-caret-down').addClass('fa-caret-up');
|
|
submenu.attr('data-collapsed', true);
|
|
}
|
|
});
|
|
|
|
$(document).on('click', '.sci--layout--navigator-open', (e) => {
|
|
navigatorContainer.$data.navigatorCollapsed = false
|
|
});
|