[fix] for offcanvas, fixes frappe/erpnext#5803
This commit is contained in:
parent
3dc0708ebc
commit
355d57b6c9
1 changed files with 2 additions and 6 deletions
|
|
@ -29,7 +29,7 @@ frappe.views.ListSidebar = Class.extend({
|
|||
if(frappe.views.calendar[this.doctype]) {
|
||||
this.sidebar.find(".calendar-link, .gantt-link").removeClass("hide");
|
||||
}
|
||||
|
||||
|
||||
if(frappe.treeview_settings[this.doctype]) {
|
||||
this.sidebar.find(".tree-link").removeClass("hide");
|
||||
}
|
||||
|
|
@ -82,7 +82,7 @@ frappe.views.ListSidebar = Class.extend({
|
|||
var me = this;
|
||||
if(this.doclistview.meta.image_field) {
|
||||
this.page.sidebar.find(".switch-list-view").removeClass("hide");
|
||||
|
||||
|
||||
var label = this.doclistview.meta.image_view ? "List View": "Image View";
|
||||
this.page.sidebar.find(".switch-list-view a").html(label)
|
||||
|
||||
|
|
@ -103,10 +103,6 @@ frappe.views.ListSidebar = Class.extend({
|
|||
this.page.sidebar.find(".switch-list-view a").on("click", function() {
|
||||
switch_list_view(label)
|
||||
});
|
||||
|
||||
this.offcanvas_list_sidebar.find(".switch-list-view a").on("click", function() {
|
||||
switch_list_view(label)
|
||||
});
|
||||
}
|
||||
},
|
||||
get_stats: function() {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue