Browse Source

fix (editable extension): fix #1819, #2072, editable formatter bug

zhixin 7 years ago
parent
commit
e572662bd0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/extensions/editable/bootstrap-table-editable.js

+ 1 - 1
src/extensions/editable/bootstrap-table-editable.js

@@ -69,7 +69,7 @@
             };
             };
             column._formatter = column._formatter ? column._formatter : column.formatter;
             column._formatter = column._formatter ? column._formatter : column.formatter;
             column.formatter = function(value, row, index) {
             column.formatter = function(value, row, index) {
-                var result = column._formatter ? column._formatter(value, row, index) : value;
+                var result = $.fn.bootstrapTable.utils.calculateObjectValue(column, column._formatter, [value, row, index], value);
 
 
                 $.each(column, processDataOptions);
                 $.each(column, processDataOptions);