=== modified file 'dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/form.js' --- dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/form.js 2012-09-15 04:31:54 +0000 +++ dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/form.js 2012-09-15 05:11:59 +0000 @@ -464,11 +464,20 @@ else { var $trTargetChildren = $trTarget.find( 'td:first-child' ); - var $matched = $trTargetChildren.find( ':contains("' + $this.val() + '")' ); - var $not_matched = $trTargetChildren.find( ':not(:contains("' + $this.val() + '"))' ); - - $matched.parent().parent(). show(); - $not_matched.parent().parent(). hide(); + + $trTargetChildren.each(function(idx, item) { + var text1 = $this.val().toUpperCase(); + var text2 = $(item).find('span').html().toUpperCase(); + + if(text2.indexOf(text1) >= 0) + { + $(item).parent().show(); + } + else + { + $(item).parent().hide(); + } + }); } refreshZebraStripes($tbody);