Skip to content

Commit 54ff88d

Browse files
author
natinusala
committed
1 parent e656e8a commit 54ff88d

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

jquery.uitablefilter.js

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,19 +42,18 @@
4242

4343
var index = new Array();
4444

45-
for (var j = 0; j < column.length; j++)
45+
jq.find("thead > tr:last > th").each(function(i)
4646
{
47-
jq.find("thead > tr:last > th").each(function(i) {
48-
47+
for (var j = 0; j < column.length; j++)
48+
{
4949
if ($.trim($(this).text()) == column[j])
5050
{
5151
index[j] = i;
52-
return false;
53-
}
54-
55-
});
52+
break;
53+
}
54+
}
5655

57-
}
56+
});
5857

5958
getText = function(elem) {
6059
var selector = "";

0 commit comments

Comments
 (0)