geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rwo...@apache.org
Subject svn commit: r1156238 - /geronimo/server/trunk/plugins/console/console-portal-driver/src/main/webapp/WEB-INF/themes/navigation.jsp
Date Wed, 10 Aug 2011 15:47:48 GMT
Author: rwonly
Date: Wed Aug 10 15:47:48 2011
New Revision: 1156238

URL: http://svn.apache.org/viewvc?rev=1156238&view=rev
Log:
GERONIMO-6107 Quick lauch doesn't support searching twice

Modified:
    geronimo/server/trunk/plugins/console/console-portal-driver/src/main/webapp/WEB-INF/themes/navigation.jsp

Modified: geronimo/server/trunk/plugins/console/console-portal-driver/src/main/webapp/WEB-INF/themes/navigation.jsp
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/plugins/console/console-portal-driver/src/main/webapp/WEB-INF/themes/navigation.jsp?rev=1156238&r1=1156237&r2=1156238&view=diff
==============================================================================
--- geronimo/server/trunk/plugins/console/console-portal-driver/src/main/webapp/WEB-INF/themes/navigation.jsp
(original)
+++ geronimo/server/trunk/plugins/console/console-portal-driver/src/main/webapp/WEB-INF/themes/navigation.jsp
Wed Aug 10 15:47:48 2011
@@ -137,7 +137,7 @@ limitations under the License.
    
     <%}%>
     
-    
+    var oldSelectedValue;
     if(dijit.byId("quickLauncher")!=null){
         dijit.byId("quickLauncher").store=listStore;
     }else{
@@ -147,13 +147,18 @@ limitations under the License.
                     searchAttr: "name",
                     labelAttr: "label",
                     labelType: "html",
+                    onChange: function(event){
+                        if(this.isValid(true) && this.value != oldSelectedValue)
{
+                            oldSelectedValue = this.value;
+                            quickLaunchPortlets(this.value);
+                        }
+                    },
                     onKeyPress: function(event){        
-                        if(event.charCode!=dojo.keys.ENTER) return;
+                        if(event.keyCode!=dojo.keys.ENTER) return;
+                        if(this.isValid(true) && this.value == oldSelectedValue)
                             quickLaunchPortlets(this.value);      
-                    },
-                    onChange: function(event){
-                        quickLaunchPortlets(this.value);
                     }
+                    
                 },
                 dojo.byId("quickLauncher")
          );



Mime
View raw message