|
604 | 604 | if (this.options.locale) { |
605 | 605 | var parts = this.options.locale.split(/-|_/); |
606 | 606 | parts[0].toLowerCase(); |
607 | | - if (parts[1]) parts[1].toUpperCase(); |
| 607 | + if (parts[1]) { |
| 608 | + parts[1].toUpperCase(); |
| 609 | + } |
608 | 610 | if ($.fn.bootstrapTable.locales[this.options.locale]) { |
609 | 611 | // locale as requested |
610 | 612 | $.extend(this.options, $.fn.bootstrapTable.locales[this.options.locale]); |
|
727 | 729 | var $this = $(this), |
728 | 730 | cspan = +$this.attr('colspan') || 1, |
729 | 731 | rspan = +$this.attr('rowspan') || 1, |
730 | | - tx, ty; |
| 732 | + tx, |
| 733 | + ty; |
731 | 734 |
|
732 | | - for (; m[y] && m[y][x]; x++); //skip already occupied cells in current row |
| 735 | + // skip already occupied cells in current row |
| 736 | + for (; m[y] && m[y][x]; x++); |
733 | 737 |
|
734 | 738 | for (tx = x; tx < x + cspan; tx++) { //mark matrix elements occupied by current cell with true |
735 | 739 | for (ty = y; ty < y + rspan; ty++) { |
|
976 | 980 | } |
977 | 981 | var aa = getItemField(a, name, that.options.escape), |
978 | 982 | bb = getItemField(b, name, that.options.escape), |
979 | | - value = calculateObjectValue(that.header, that.header.sorters[index], [aa, bb]); |
| 983 | + value = calculateObjectValue(that.header, that.header.sorters[index], [aa, bb, a, b]); |
980 | 984 |
|
981 | 985 | if (value !== undefined) { |
982 | 986 | if (that.options.sortStable && value === 0) { |
|
2603 | 2607 | return; |
2604 | 2608 | } |
2605 | 2609 |
|
2606 | | - this.columns[this.fieldsColumnsIndex[params.field]].title = this.options.escape |
2607 | | - ? escapeHTML(params.title) |
2608 | | - : params.title; |
| 2610 | + this.columns[this.fieldsColumnsIndex[params.field]].title = |
| 2611 | + this.options.escape ? escapeHTML(params.title) : params.title; |
2609 | 2612 |
|
2610 | 2613 | if (this.columns[this.fieldsColumnsIndex[params.field]].visible) { |
2611 | 2614 | var header = this.options.height !== undefined ? this.$tableHeader : this.$header; |
|
2755 | 2758 | if (rowId === -1) { |
2756 | 2759 | return; |
2757 | 2760 | } |
2758 | | - that.data[rowId][params.field] = params.value |
| 2761 | + that.data[rowId][params.field] = params.value; |
2759 | 2762 | }); |
2760 | 2763 |
|
2761 | 2764 | if (params.reinit === false) { |
|
0 commit comments