Fix missing <tr> from list view thead (broke IE7)

This commit is contained in:
bfederle 2012-01-26 15:00:20 -08:00
parent c40a421eb6
commit 203cdedf87
1 changed files with 4 additions and 4 deletions

View File

@ -501,12 +501,12 @@
var createHeader = function(fields, $table, actions, options) {
if (!options) options = {};
var $thead = $('<thead>').appendTo($table);
var $thead = $('<thead>').prependTo($table).append($('<tr>'));
var reorder = options.reorder;
$.each(fields, function(key) {
var field = this;
var $th = $('<th>').appendTo($thead);
var $th = $('<th>').appendTo($thead.find('tr'));
if ($th.index()) $th.addClass('reduced-hide');
@ -514,13 +514,13 @@
});
if (reorder) {
$thead.append(
$thead.find('tr').append(
$('<th>').html('Order').addClass('reorder-actions reduced-hide')
);
}
if (actions && renderActionCol(actions)) {
$thead.append(
$thead.find('tr').append(
$('<th></th>')
.html('Actions')
.addClass('actions reduced-hide')