Skip to content

Commit

Permalink
Update bootstrap-table-editable.js
Browse files Browse the repository at this point in the history
linting issues
  • Loading branch information
utilmind authored Jun 8, 2023
1 parent 84a4561 commit 8df0f9c
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/extensions/editable/bootstrap-table-editable.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,22 +78,23 @@ $.BootstrapTable = class extends $.BootstrapTable {

const editableOpts = Utils.calculateObjectValue(column,
column.editable, [index, row], {})
const noEditFormatter = editableOpts.hasOwnProperty("noEditFormatter") &&
editableOpts.noEditFormatter(value, row, index, field);
const noEditFormatter = editableOpts.hasOwnProperty('noEditFormatter') &&
editableOpts.noEditFormatter(value, row, index, field)

if (noEditFormatter) {
return noEditFormatter
return noEditFormatter
}

let editableDataMarkup = ""
let editableDataMarkup = ''

$.each(editableOptions, (key, value) => {
editableDataMarkup += ` ${key}="${value}"`
})

return `<a href="javascript:void(0)"
data-name="${column.field}"
data-pk="${row[this.options.idField]}"
data-value="${value || ""}"
data-value="${value || ''}"
${editableDataMarkup}>${result}</a>` // expand all data-editable-XXX
}
})
Expand Down

0 comments on commit 8df0f9c

Please sign in to comment.