[fusion-commits] r1403 - sandbox/aboudreault/widgets
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Mon May 12 09:33:40 EDT 2008
Author: aboudreault
Date: 2008-05-12 09:33:40 -0400 (Mon, 12 May 2008)
New Revision: 1403
Modified:
sandbox/aboudreault/widgets/MSSearch.js
Log:
don't make request it no pattern provided
Modified: sandbox/aboudreault/widgets/MSSearch.js
===================================================================
--- sandbox/aboudreault/widgets/MSSearch.js 2008-05-09 17:32:39 UTC (rev 1402)
+++ sandbox/aboudreault/widgets/MSSearch.js 2008-05-12 13:33:40 UTC (rev 1403)
@@ -74,9 +74,13 @@
execute : function() {
var options = {};
+ var pattern = this.oTextBox.value.trim();
+ if (pattern == "")
+ return;
+
options.queryType = 'search';
options.attribute = this.sAttribute;
- options.pattern = "/"+this.oTextBox.value.trim()+"/";
+ options.pattern = "/"+pattern+"/";
if (!this.bCaseSensitive)
options.pattern += "i";
options.matchlimit = this.sMatchLimit;
More information about the fusion-commits
mailing list