[Mapbender-commits] r4351 - branches/kmq_dev/http/javascripts

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Jul 14 06:27:08 EDT 2009


Author: kmq
Date: 2009-07-14 06:27:08 -0400 (Tue, 14 Jul 2009)
New Revision: 4351

Modified:
   branches/kmq_dev/http/javascripts/mod_AdminTabs.js
Log:
Object list searching

Modified: branches/kmq_dev/http/javascripts/mod_AdminTabs.js
===================================================================
--- branches/kmq_dev/http/javascripts/mod_AdminTabs.js	2009-07-14 04:48:15 UTC (rev 4350)
+++ branches/kmq_dev/http/javascripts/mod_AdminTabs.js	2009-07-14 10:27:08 UTC (rev 4351)
@@ -50,7 +50,8 @@
 
   var listFilter = $('<input type="text" >');
   listFilter.attr('title','filter users by name');
-  listFilter.bind('keyup',this.addOnFilterChangeHandler());
+  listFilter.attr('value',search);
+  listFilter.bind('change keyup',this.addOnFilterChangeHandler());
 
   
   //listEntry.appendChild(listFilter);
@@ -102,7 +103,7 @@
     //TODO: optimize
     for(entry in list.allEntries)
     {
-      if(entry.indexOf(needle) != -1)
+      if(list.allEntries[entry].value.indexOf(needle) != -1)
       {
         list.displayEntries[entry] = list.allEntries[entry]; 
       }



More information about the Mapbender_commits mailing list