Author: dmorozov
Date: 2007-09-28 08:25:33 -0400 (Fri, 28 Sep 2007)
New Revision: 3164
Modified:
trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/Grid.js
Log:
Fix behavior of quick find. Add ignoring of tabs while look for cell's text
Modified: trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/Grid.js
===================================================================
---
trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/Grid.js 2007-09-28
11:40:53 UTC (rev 3163)
+++
trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/Grid.js 2007-09-28
12:25:33 UTC (rev 3164)
@@ -180,14 +180,13 @@
quickFind: function(column, text, startRow) {
var start = startRow || 0;
var searchText = ".*" + text + ".*";
- //searchText = searchText.replace(/\*/g, ".*");
var searchReg = new RegExp(searchText, 'i');
var rowIndex = -1;
var body = this.getBody();
var rowsCount = body.rowsCount;
for (var i = start; i < rowsCount; i++) {
var currentTextInGrid = body.getCellText(i, column);
- currentTextInGrid = currentTextInGrid.replace(/,/g,'');
+ currentTextInGrid =
currentTextInGrid.replace(/(<[^<]*>)/g,'');
if (currentTextInGrid.search(searchReg) != -1) {
rowIndex = i;
break;
Show replies by date