fix: Find footer buttons only in case of tree report

This commit is contained in:
deepeshgarg007 2019-04-10 12:51:39 +05:30
parent 3a5166c423
commit 35165a7e69

View file

@ -1138,9 +1138,9 @@ frappe.views.QueryReport = class QueryReport extends frappe.views.BaseList {
${__('Collapse All')}</button>
</div>`);
this.page.footer.before(this.$tree_footer);
this.$tree_footer.find('[data-action=collapse_all_rows]').show();
this.$tree_footer.find('[data-action=expand_all_rows]').hide();
}
this.$tree_footer.find('[data-action=collapse_all_rows]').show();
this.$tree_footer.find('[data-action=expand_all_rows]').hide();
}
expand_all_rows() {