git-svn-id: https://svn.apache.org/repos/asf/incubator/ambari/trunk@1431851 13f79535-47bb-0310-9956-ffa450edef68
@@ -220,7 +220,8 @@ jQuery.extend($.fn.dataTableExt.afnFiltering.push(
match = false;
rowValue = (jQuery(rowValue).text()) ? jQuery(rowValue).text() : rowValue;
for (var i = 0; i < options.length; i++) {
- if (rowValue.indexOf(options[i]) !== -1) match = true;
+ var str = new RegExp('(\\W|^)' + options[i] + '(\\W|$)');
+ if (rowValue.search(str) !== -1) match = true;
}
@@ -46,6 +46,7 @@ App.MainHostView = Em.View.extend({
"bSortCellsTop": true,
"iDisplayLength": 10,
"aLengthMenu": [[10, 25, 50, 100, -1], [10, 25, 50, 100, "All"]],
+ "oSearch": {"bSmart":false},
"aoColumns":[
{ "bSortable": false },
{ "sType":"html" },