Browse Source

Update bootstrap-table-editable.js

linting issues
Oleksii Kuznietsov 2 years ago
parent
commit
8df0f9c0b4
1 changed files with 6 additions and 5 deletions
  1. 6 5
      src/extensions/editable/bootstrap-table-editable.js

+ 6 - 5
src/extensions/editable/bootstrap-table-editable.js

@@ -78,14 +78,15 @@ $.BootstrapTable = class extends $.BootstrapTable {
 
 
         const editableOpts = Utils.calculateObjectValue(column,
         const editableOpts = Utils.calculateObjectValue(column,
           column.editable, [index, row], {})
           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) {
         if (noEditFormatter) {
-            return noEditFormatter
+          return noEditFormatter
         }
         }
 
 
-        let editableDataMarkup = ""
+        let editableDataMarkup = ''
+
         $.each(editableOptions, (key, value) => {
         $.each(editableOptions, (key, value) => {
           editableDataMarkup += ` ${key}="${value}"`
           editableDataMarkup += ` ${key}="${value}"`
         })
         })
@@ -93,7 +94,7 @@ $.BootstrapTable = class extends $.BootstrapTable {
         return `<a href="javascript:void(0)"
         return `<a href="javascript:void(0)"
           data-name="${column.field}"
           data-name="${column.field}"
           data-pk="${row[this.options.idField]}"
           data-pk="${row[this.options.idField]}"
-          data-value="${value || ""}"
+          data-value="${value || ''}"
           ${editableDataMarkup}>${result}</a>` // expand all data-editable-XXX
           ${editableDataMarkup}>${result}</a>` // expand all data-editable-XXX
       }
       }
     })
     })