Browse Source

Removed unnecessary params.

Jan Hajek 10 years ago
parent
commit
a2e0f081a5
1 changed files with 4 additions and 6 deletions
  1. 4 6
      src/extensions/editable/bootstrap-table-editable.js

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

@@ -85,21 +85,19 @@
                     that.trigger('editable-save', column.field, row, oldValue, $(this));
                     that.trigger('editable-save', column.field, row, oldValue, $(this));
                 });
                 });
             that.$body.find('a[data-name="' + column.field + '"]').editable(column.editable)
             that.$body.find('a[data-name="' + column.field + '"]').editable(column.editable)
-                .off('shown').on('shown', function (e, params) {
+                .off('shown').on('shown', function (e) {
                     var data = that.getData(),
                     var data = that.getData(),
                         index = $(this).parents('tr[data-index]').data('index'),
                         index = $(this).parents('tr[data-index]').data('index'),
                         row = data[index];
                         row = data[index];
-
-                    row[column.field] = params.submitValue;
+                    
                     that.trigger('editable-shown', column.field, row, $(this));
                     that.trigger('editable-shown', column.field, row, $(this));
                 });
                 });
             that.$body.find('a[data-name="' + column.field + '"]').editable(column.editable)
             that.$body.find('a[data-name="' + column.field + '"]').editable(column.editable)
-                .off('hidden').on('hidden', function (e, params) {
+                .off('hidden').on('hidden', function (e, editable) {
                     var data = that.getData(),
                     var data = that.getData(),
                         index = $(this).parents('tr[data-index]').data('index'),
                         index = $(this).parents('tr[data-index]').data('index'),
                         row = data[index];
                         row = data[index];
-
-                    row[column.field] = params.submitValue;
+                    
                     that.trigger('editable-hidden', column.field, row, $(this));
                     that.trigger('editable-hidden', column.field, row, $(this));
                 });
                 });
         });
         });