Przeglądaj źródła

[fix] for offcanvas, fixes frappe/erpnext#5803

version-14
Rushabh Mehta 9 lat temu
rodzic
commit
355d57b6c9
1 zmienionych plików z 2 dodań i 6 usunięć
  1. +2
    -6
      frappe/public/js/frappe/list/list_sidebar.js

+ 2
- 6
frappe/public/js/frappe/list/list_sidebar.js Wyświetl plik

@@ -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() {


Ładowanie…
Anuluj
Zapisz