mirror of
https://github.com/getformwork/formwork.git
synced 2025-01-29 19:37:44 +01:00
Fix js error in pages without sidebar
This commit is contained in:
parent
161d6f2c1a
commit
9dcad3b53b
2
admin/assets/js/app.min.js
vendored
2
admin/assets/js/app.min.js
vendored
File diff suppressed because one or more lines are too long
@ -23,9 +23,11 @@ export default Formwork = {
|
||||
Pages.init();
|
||||
Updates.init();
|
||||
|
||||
$('.toggle-navigation').addEventListener('click', function () {
|
||||
$('.sidebar').classList.toggle('show');
|
||||
});
|
||||
if ($('.toggle-navigation')) {
|
||||
$('.toggle-navigation').addEventListener('click', function () {
|
||||
$('.sidebar').classList.toggle('show');
|
||||
});
|
||||
}
|
||||
|
||||
$$('[data-chart-data]').forEach(function (element) {
|
||||
var data = JSON.parse(element.getAttribute('data-chart-data'));
|
||||
|
Loading…
x
Reference in New Issue
Block a user