浏览代码

Call to `resetFooter` after save

Footer contents updated via call to `resetFooter` (which itself checks for `showFooter`) following call to save changes.
Fix for issue reported in #1991, fiddle: http://jsfiddle.net/dabros/Lr056k01/1/
dabros 9 年之前
父节点
当前提交
c291a99c07
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/extensions/editable/bootstrap-table-editable.js

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

@@ -104,6 +104,7 @@
                     $(this).data('value', params.submitValue);
                     row[column.field] = params.submitValue;
                     that.trigger('editable-save', column.field, row, oldValue, $(this));
+                    that.resetFooter();
                 });
             that.$body.find('a[data-name="' + column.field + '"]').editable(column.editable)
                 .off('shown').on('shown', function (e, editable) {