Skip to content

Commit 58f287c

Browse files
csuich2bfederle
authored andcommitted
Commiting multi select stuff for inital review
1 parent 350e893 commit 58f287c

3 files changed

Lines changed: 231 additions & 74 deletions

File tree

ui/plugins/netapp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/Users/csuich/CloudStack/workspace/ui-plugin/

ui/scripts/ui/widgets/dataTable.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,12 @@
8383
.addClass('data-table')
8484
.appendTo($table.parent())
8585
.append(
86-
$table.remove()
86+
$table.detach()
8787
);
8888
$table = $mainContainer;
8989
var $theadContainer = $('<div>').addClass('fixed-header').prependTo($table);
9090
var $theadTable = $('<table>').appendTo($theadContainer).attr('nowrap', 'nowrap');
91-
var $thead = $table.find('thead').remove().appendTo($theadTable);
91+
var $thead = $table.find('thead').detach().appendTo($theadTable);
9292

9393
return $thead;
9494
};
@@ -238,9 +238,9 @@
238238
$table.find('tbody').closest('table').addClass('body');
239239
}
240240

241-
$table.find('th').bind('mousemove mouseout', hoverResizableEvent);
242-
$table.find('th').bind('mousedown mousemove mouseup mouseout', resizeDragEvent);
243-
$table.find('th').bind('click', function(event) {
241+
$table.find('th:not(:has(input))').bind('mousemove mouseout', hoverResizableEvent);
242+
$table.find('th:not(:has(input))').bind('mousedown mousemove mouseup mouseout', resizeDragEvent);
243+
$table.find('th:not(:has(input))').bind('click', function(event) {
244244
if ($(this).hasClass('resizable')) {
245245
return false;
246246
}

0 commit comments

Comments
 (0)