diff --git a/ui/scripts/ui/widgets/listView.js b/ui/scripts/ui/widgets/listView.js index 64c5518223e..d43a0d9df21 100644 --- a/ui/scripts/ui/widgets/listView.js +++ b/ui/scripts/ui/widgets/listView.js @@ -501,12 +501,12 @@ var createHeader = function(fields, $table, actions, options) { if (!options) options = {}; - var $thead = $('').appendTo($table); + var $thead = $('').prependTo($table).append($('')); var reorder = options.reorder; $.each(fields, function(key) { var field = this; - var $th = $('').appendTo($thead); + var $th = $('').appendTo($thead.find('tr')); if ($th.index()) $th.addClass('reduced-hide'); @@ -514,13 +514,13 @@ }); if (reorder) { - $thead.append( + $thead.find('tr').append( $('').html('Order').addClass('reorder-actions reduced-hide') ); } if (actions && renderActionCol(actions)) { - $thead.append( + $thead.find('tr').append( $('') .html('Actions') .addClass('actions reduced-hide')