8000 Add sidebar check · socketpy/django-jet@b7b5853 · GitHub
[go: up one dir, main page]

Skip to content

Commit b7b5853

Browse files
committed
Add sidebar check
1 parent 891ffd3 commit b7b5853

File tree

1 file changed

+4
-0
lines changed
  • jet/static/jet/js/src/features/sidebar

1 file changed

+4
-0
lines changed

jet/static/jet/js/src/features/sidebar/main.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@ SideBar.prototype = {
7272
$.cookie('sidebar_pinned', status, { expires: 365, path: '/' });
7373
},
7474
addToggleButton: function() {
75+
if (!this.$sidebar.length) {
76+
return;
77+
}
78+
7579
var $button = $('<span>')
7680
.addClass('sidebar-container-toggle sidebar-header-menu-icon icon-menu sidebar-toggle');
7781

0 commit comments

Comments
 (0)
0