fix: dont check first row on report load
- This doesn't actually load the chart but leaves UI and data in inconsistent state - On refresh it randomly keeps toggling the first row - confusing behaviour.
This commit is contained in:
parent
ceeea6180e
commit
67a74a4d14
@ -68,9 +68,6 @@ frappe.query_reports["Purchase Analytics"] = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
],
|
],
|
||||||
after_datatable_render: function(datatable_obj) {
|
|
||||||
$(datatable_obj.wrapper).find(".dt-row-0").find('input[type=checkbox]').click();
|
|
||||||
},
|
|
||||||
get_datatable_options(options) {
|
get_datatable_options(options) {
|
||||||
return Object.assign(options, {
|
return Object.assign(options, {
|
||||||
checkboxColumn: true,
|
checkboxColumn: true,
|
||||||
|
@ -67,9 +67,6 @@ frappe.query_reports["Sales Analytics"] = {
|
|||||||
reqd: 1
|
reqd: 1
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
after_datatable_render: function(datatable_obj) {
|
|
||||||
$(datatable_obj.wrapper).find(".dt-row-0").find('input[type=checkbox]').click();
|
|
||||||
},
|
|
||||||
get_datatable_options(options) {
|
get_datatable_options(options) {
|
||||||
return Object.assign(options, {
|
return Object.assign(options, {
|
||||||
checkboxColumn: true,
|
checkboxColumn: true,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user