|
|
@@ -8,9 +8,7 @@ frappe.ui.toolbar.Toolbar = Class.extend({ |
|
|
|
var header = $('header').append(frappe.render_template("navbar", { |
|
|
|
avatar: frappe.avatar(frappe.session.user) |
|
|
|
})); |
|
|
|
var sidebar = $('.offcanvas .sidebar-left').append(frappe.render_template("offcanvas_left_sidebar", {})); |
|
|
|
|
|
|
|
// header.find(".toggle-sidebar").on("click", frappe.ui.toolbar.toggle_left_sidebar); |
|
|
|
header.find(".toggle-sidebar").on("click", function () { |
|
|
|
var layout_side_section = $('.layout-side-section'); |
|
|
|
var overlay_sidebar = layout_side_section.find('.overlay-sidebar'); |
|
|
@@ -37,11 +35,6 @@ frappe.ui.toolbar.Toolbar = Class.extend({ |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
header.find(".toggle-navbar-new-comments").on("click", function() { |
|
|
|
$(".offcanvas").toggleClass("active-right").removeClass("active-left"); |
|
|
|
return false; |
|
|
|
}); |
|
|
|
|
|
|
|
$(document).on("notification-update", function() { |
|
|
|
frappe.ui.notifications.update_notifications(); |
|
|
|
}); |
|
|
@@ -83,10 +76,6 @@ $.extend(frappe.ui.toolbar, { |
|
|
|
frappe.ui.toolbar.get_menu(menu) : menu; |
|
|
|
|
|
|
|
$('<li class="divider custom-menu"></li>').prependTo(menu); |
|
|
|
}, |
|
|
|
toggle_left_sidebar: function() { |
|
|
|
$(".offcanvas").toggleClass("active-left").removeClass("active-right"); |
|
|
|
return false; |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|