Add hound linter suggestions

This commit is contained in:
Ivan Kljun 2023-08-02 17:02:11 +02:00
parent 2d26c70d40
commit 0bdbe84d4d
2 changed files with 4 additions and 3 deletions

View file

@ -16,7 +16,7 @@ $(document).on('click', '.sci--layout--menu-item[data-submenu=true]', (e) => {
});
$(document).on('click', '.sci--layout--navigator-open', (e) => {
navigatorContainer.toggleNavigatorState(false)
navigatorContainer.toggleNavigatorState(false);
});
$(document).on('click', '.btn', function() {

View file

@ -26,7 +26,7 @@ window.addEventListener('DOMContentLoaded', () => {
})
},
methods: {
toggleNavigatorState: function (newNavigatorState) {
toggleNavigatorState: function(newNavigatorState) {
let stateUrl = $('#sciNavigationNavigatorContainer').attr('data-navigator-state-url');
$.post(stateUrl, {state: newNavigatorState ? 'collapsed' : 'open'});
$('.sci--layout').attr('data-navigator-collapsed', newNavigatorState);
@ -51,7 +51,8 @@ window.addEventListener('DOMContentLoaded', () => {
});
}
}
}});
}
});
window.navigatorContainer = navigator
});