diff --git a/src/sunstone/public/app/utils/vcenter/common/fieldset-table.hbs b/src/sunstone/public/app/utils/vcenter/common/fieldset-table.hbs index 3f154ffe00..0f2a282088 100644 --- a/src/sunstone/public/app/utils/vcenter/common/fieldset-table.hbs +++ b/src/sunstone/public/app/utils/vcenter/common/fieldset-table.hbs @@ -31,7 +31,7 @@
-
+

@@ -48,6 +48,9 @@ {{/if}}

+
+ +
diff --git a/src/sunstone/public/app/utils/vcenter/networks.js b/src/sunstone/public/app/utils/vcenter/networks.js index d9981d0efc..fa13f989ac 100644 --- a/src/sunstone/public/app/utils/vcenter/networks.js +++ b/src/sunstone/public/app/utils/vcenter/networks.js @@ -126,9 +126,9 @@ define(function(require) { "bAutoWidth": false, "bSortClasses" : false, "bDeferRender": false, - "ordering": false, "aoColumnDefs": [ - {"sWidth": "35px", "aTargets": [0]}, + {"bSortable": false, "aTargets": [0, 2]}, + {"sWidth": "35px", "aTargets": [0]}, ], }, "customTrListener": function(tableObj, tr){ return false; } diff --git a/src/sunstone/public/app/utils/vcenter/networks/row.hbs b/src/sunstone/public/app/utils/vcenter/networks/row.hbs index fac4445008..c864462e51 100644 --- a/src/sunstone/public/app/utils/vcenter/networks/row.hbs +++ b/src/sunstone/public/app/utils/vcenter/networks/row.hbs @@ -19,6 +19,11 @@ +
diff --git a/src/sunstone/public/app/utils/vcenter/templates.js b/src/sunstone/public/app/utils/vcenter/templates.js index efe7d8dce3..e3cbba6887 100644 --- a/src/sunstone/public/app/utils/vcenter/templates.js +++ b/src/sunstone/public/app/utils/vcenter/templates.js @@ -56,6 +56,7 @@ define(function(require) { } */ function _fillVCenterTemplates(opts) { + var that = this; this.opts = opts; var context = $(".vcenter_import", opts.container); @@ -119,9 +120,9 @@ define(function(require) { "bAutoWidth": false, "bSortClasses" : false, "bDeferRender": false, - "ordering": false, "aoColumnDefs": [ - { "sWidth": "35px", "aTargets": [0] }, + {"bSortable": false, "aTargets": [0, 2]}, + { "sWidth": "35px", "aTargets": [0] }, ], }, "customTrListener": function(tableObj, tr){ return false; } diff --git a/src/sunstone/public/app/utils/vcenter/templates/row.hbs b/src/sunstone/public/app/utils/vcenter/templates/row.hbs index 3cc8d247ad..89fc914305 100644 --- a/src/sunstone/public/app/utils/vcenter/templates/row.hbs +++ b/src/sunstone/public/app/utils/vcenter/templates/row.hbs @@ -19,6 +19,7 @@ +
diff --git a/src/sunstone/public/app/utils/vcenter/vcenter-common.js b/src/sunstone/public/app/utils/vcenter/vcenter-common.js index 4307ab263b..d5d48b3ae7 100644 --- a/src/sunstone/public/app/utils/vcenter/vcenter-common.js +++ b/src/sunstone/public/app/utils/vcenter/vcenter-common.js @@ -62,6 +62,11 @@ define(function(require) { $(".accordion_advanced_toggle", opts.context).click(); } }); + + $(".vcenter-table-search", opts.context).on("input", function() { + opts.table.dataTable().fnFilter($(this).val()); + return false; + }); } function _recountCheckboxes(opts) {