Skip to content

Commit

Permalink
Merge pull request #25 from RajuPedda/patch-2
Browse files Browse the repository at this point in the history
Updated SvelteGenericCrudTableService.js
  • Loading branch information
ivosdc committed Mar 19, 2022
2 parents 1fa40fb + 11011f3 commit 041894e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SvelteGenericCrudTableService.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export class SvelteGenericCrudTableService {
}

resetEditMode(id, event) {
let parentrow = this.getTable(event);
let parentrow = this.getRow(event);
this.table_config.columns_setting.forEach((toEdit) => {
let rowEnabled = parentrow.querySelector('#' + this.name + toEdit.name + id);
let rowDisabled = parentrow.querySelector('#' + this.name + toEdit.name + id + '-disabled');
Expand All @@ -42,7 +42,7 @@ export class SvelteGenericCrudTableService {
}

resetDeleteMode(id, event) {
let parentrow = this.getTable(event);
let parentrow = this.getRow(event);
let optionsDefault = parentrow.querySelector('#' + this.name + 'options-default' + id);
let optionsDelete = parentrow.querySelector('#' + this.name + 'options-delete' + id);
if (optionsDefault !== null && optionsDelete !== null) {
Expand Down

0 comments on commit 041894e

Please sign in to comment.