changeset 1384:4fd86e3deccf beta

fixes #211
author Marcin Kuzminski <marcin@python-works.com>
date Thu, 16 Jun 2011 20:05:13 +0200
parents 95e6a005630c
children 7e221629a3e5
files rhodecode/templates/summary/summary.html
diffstat 1 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/rhodecode/templates/summary/summary.html	Tue Jun 14 10:22:25 2011 +0200
+++ b/rhodecode/templates/summary/summary.html	Thu Jun 16 20:05:13 2011 +0200
@@ -188,7 +188,14 @@
 	  	YUE.onDOMReady(function(e){
 	  	    id = 'clone_url';
 	  	    YUE.on(id,'click',function(e){
-	  	        YUD.get('clone_url').select();
+	  	    	if(YUD.hasClass(id,'selected')){
+	  	    		return
+	  	    	}
+	  	    	else{
+	                YUD.addClass(id,'selected');
+	                YUD.get(id).select();	  	    		
+	  	    	}
+
 	  	    })
 	  	})
   		var data = ${c.trending_languages|n};