From ed22d2e8725389e6837675433e076244336eef81 Mon Sep 17 00:00:00 2001 From: kevinparkerson Date: Tue, 21 Oct 2014 17:05:38 -0400 Subject: [PATCH] repeater-highlight-to-sorted: changing "highlight" class to "sorted" --- js/repeater-list.js | 4 ++-- less/repeater-list.less | 2 +- test/repeater-list-test.js | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/js/repeater-list.js b/js/repeater-list.js index dbccb06cc..0ea5dc614 100755 --- a/js/repeater-list.js +++ b/js/repeater-list.js @@ -35,10 +35,10 @@ $.fn.repeater.Constructor.prototype.list_highlightColumn = function(index, force){ var tbody = this.$canvas.find('.repeater-list tbody'); if(this.options.list_highlightSortedColumn || force){ - tbody.find('td.highlight').removeClass('highlight'); + tbody.find('td.sorted').removeClass('sorted'); tbody.find('tr').each(function(){ var col = $(this).find('td:nth-child(' + (index + 1) + ')'); - col.addClass('highlight'); + col.addClass('sorted'); }); } }; diff --git a/less/repeater-list.less b/less/repeater-list.less index b14e0e895..0a097ea7f 100755 --- a/less/repeater-list.less +++ b/less/repeater-list.less @@ -46,7 +46,7 @@ border-left: none; } - &.highlight { + &.sorted { background: #f9f9f9; } } diff --git a/test/repeater-list-test.js b/test/repeater-list-test.js index 72f31277f..bb95deced 100644 --- a/test/repeater-list-test.js +++ b/test/repeater-list-test.js @@ -197,10 +197,10 @@ define(function(require){ break; case 2: $col = $repeater.find('.repeater-list tbody tr:first-child td:nth-child(1)'); - equal($col.hasClass('highlight'), true, 'correct sorted column highlighted'); + equal($col.hasClass('sorted'), true, 'correct sorted column highlighted'); num = 0; $repeater.find('.repeater-list tbody tr').each(function(){ - if($(this).find('td:nth-child(1)').hasClass('highlight')){ + if($(this).find('td:nth-child(1)').hasClass('sorted')){ num++; } });