chore: linter fix
This commit is contained in:
parent
99330ff8c9
commit
5705da52df
1 changed files with 7 additions and 6 deletions
|
|
@ -553,11 +553,12 @@ export default class Grid {
|
||||||
let idx = $(event.item).closest(".grid-row").attr("data-idx") - 1;
|
let idx = $(event.item).closest(".grid-row").attr("data-idx") - 1;
|
||||||
let doc = this.data[idx % this.grid_pagination.page_length];
|
let doc = this.data[idx % this.grid_pagination.page_length];
|
||||||
this.renumber_based_on_dom();
|
this.renumber_based_on_dom();
|
||||||
this.frm && this.frm.script_manager.trigger(
|
this.frm &&
|
||||||
this.df.fieldname + "_move",
|
this.frm.script_manager.trigger(
|
||||||
this.df.options,
|
this.df.fieldname + "_move",
|
||||||
doc.name
|
this.df.options,
|
||||||
);
|
doc.name
|
||||||
|
);
|
||||||
this.refresh();
|
this.refresh();
|
||||||
this.frm && this.frm.dirty();
|
this.frm && this.frm.dirty();
|
||||||
},
|
},
|
||||||
|
|
@ -829,7 +830,7 @@ export default class Grid {
|
||||||
d.idx = index + 1;
|
d.idx = index + 1;
|
||||||
$item.attr("data-idx", d.idx);
|
$item.attr("data-idx", d.idx);
|
||||||
|
|
||||||
if(this.frm) this.frm.doc[this.df.fieldname][index] = d;
|
if (this.frm) this.frm.doc[this.df.fieldname][index] = d;
|
||||||
this.data[index] = d;
|
this.data[index] = d;
|
||||||
this.grid_rows[index] = this.grid_rows_by_docname[d.name];
|
this.grid_rows[index] = this.grid_rows_by_docname[d.name];
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue