Browse Source

#57: Remove the code.

zhixin 11 years ago
parent
commit
bc7f45d34c

File diff suppressed because it is too large
+ 2 - 2
dist/bootstrap-table.min.css


File diff suppressed because it is too large
+ 2 - 2
dist/bootstrap-table.min.js


+ 1 - 1
dist/locale/bootstrap-table-da-DK.min.js

@@ -1,5 +1,5 @@
 /*
-* bootstrap-table - v1.1.4 - 2014-08-14
+* bootstrap-table - v1.1.4 - 2014-08-15
 * https://github.com/wenzhixin/bootstrap-table
 * Copyright (c) 2014 zhixin wen
 * Licensed MIT License

+ 1 - 1
dist/locale/bootstrap-table-en.min.js

@@ -1,5 +1,5 @@
 /*
-* bootstrap-table - v1.1.4 - 2014-08-14
+* bootstrap-table - v1.1.4 - 2014-08-15
 * https://github.com/wenzhixin/bootstrap-table
 * Copyright (c) 2014 zhixin wen
 * Licensed MIT License

+ 1 - 1
dist/locale/bootstrap-table-pt-BR.min.js

@@ -1,5 +1,5 @@
 /*
-* bootstrap-table - v1.1.4 - 2014-08-14
+* bootstrap-table - v1.1.4 - 2014-08-15
 * https://github.com/wenzhixin/bootstrap-table
 * Copyright (c) 2014 zhixin wen
 * Licensed MIT License

+ 1 - 1
dist/locale/bootstrap-table-zh-CN.min.js

@@ -1,5 +1,5 @@
 /*
-* bootstrap-table - v1.1.4 - 2014-08-14
+* bootstrap-table - v1.1.4 - 2014-08-15
 * https://github.com/wenzhixin/bootstrap-table
 * Copyright (c) 2014 zhixin wen
 * Licensed MIT License

+ 1 - 1
dist/locale/bootstrap-table-zh-TW.min.js

@@ -1,5 +1,5 @@
 /*
-* bootstrap-table - v1.1.4 - 2014-08-14
+* bootstrap-table - v1.1.4 - 2014-08-15
 * https://github.com/wenzhixin/bootstrap-table
 * Copyright (c) 2014 zhixin wen
 * Licensed MIT License

+ 2 - 22
src/bootstrap-table.js

@@ -240,12 +240,7 @@
         this.$el.find('tbody tr').each(function () {
             var row = {};
             $(this).find('td').each(function (i) {
-                var value = $(this).html();
-                var classes = $(this).attr('class') || '';
-                row[that.options.columns[i].field] = {
-                    'value': value,
-                    'class': classes
-                };
+                row[that.options.columns[i].field] = $(this).html();
             });
             data.push(row);
         });
@@ -362,15 +357,6 @@
                     return order * eval(sorter + '(a[name], b[name])'); // eval ?
                 }
 
-                if (typeof a === 'object' && typeof b === 'object') {
-                    if (a[name].value === b[name].value) {
-                        return 0;
-                    }
-                    if (a[name].value < b[name].value) {
-                        return order * -1;
-                    }
-                }
-
                 if (a[name] === b[name]) {
                     return 0;
                 }
@@ -746,12 +732,6 @@
                         '</td>'].join('');
                 } else {
                     value = typeof value === 'undefined' ? that.options.undefinedText : value;
-                    var classes = '';
-
-                    if (typeof value == 'object') {
-                        classes = value['class'];
-                        value = value.value;
-                    }
 
                     text = that.options.cardView ?
                         ['<div class="card-view">',
@@ -759,7 +739,7 @@
                                 getPropertyFromOther(that.options.columns, 'field', 'title', field)),
                             sprintf('<span class="value">%s</span>', value),
                             '</div>'].join('') :
-                        [sprintf('<td %s class="%s">', style, classes),
+                        [sprintf('<td %s>', style),
                             value,
                             '</td>'].join('');
                 }