geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lin...@apache.org
Subject svn commit: r732039 - /geronimo/server/trunk/plugins/console/plugin-portlets/src/main/webapp/WEB-INF/view/car/assemblylist.jsp
Date Tue, 06 Jan 2009 18:31:57 GMT
Author: linsun
Date: Tue Jan  6 10:31:56 2009
New Revision: 732039

URL: http://svn.apache.org/viewvc?rev=732039&view=rev
Log:
GERONIMO-4486 Custom server assembly portlet doesn't filter specific word

Modified:
    geronimo/server/trunk/plugins/console/plugin-portlets/src/main/webapp/WEB-INF/view/car/assemblylist.jsp

Modified: geronimo/server/trunk/plugins/console/plugin-portlets/src/main/webapp/WEB-INF/view/car/assemblylist.jsp
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/plugins/console/plugin-portlets/src/main/webapp/WEB-INF/view/car/assemblylist.jsp?rev=732039&r1=732038&r2=732039&view=diff
==============================================================================
--- geronimo/server/trunk/plugins/console/plugin-portlets/src/main/webapp/WEB-INF/view/car/assemblylist.jsp
(original)
+++ geronimo/server/trunk/plugins/console/plugin-portlets/src/main/webapp/WEB-INF/view/car/assemblylist.jsp
Tue Jan  6 10:31:56 2009
@@ -34,7 +34,7 @@
     return false;
   }
 
-    //this function searches the category & name columns and display
+    //this function searches the category and name/descrpition columns and display
     //rows within the table (identified by tid) that contain the searchterm
     function filterCategoryAndName(searchterm, tid) {
         var term = searchterm.value.toLowerCase().split(" ");;
@@ -45,6 +45,12 @@
             //replace special characters with ""
             nameElement = table.rows[i].cells[1].innerHTML.replace(/<>/g,"");     
     
             categoryElement = table.rows[i].cells[3].innerHTML.replace(/<>/g,"");
+
+            // let's remove the long href within the nameElement by using everything after
title
+            var j = nameElement.indexOf("title");
+            if (j > 0) {
+            	nameElement = nameElement.substring(j + 5);
+            }
             table.rows[i].style.display = 'none';
 
             for (var j = 0; j < term.length; j++) {  



Mime
View raw message