comparison rhodecode/templates/base/root.html @ 3206:d4bb8de7382f beta

top menu: show user menu when hovering instead of using js - like other menus
author Mads Kiilerich <madski@unity3d.com>
date Wed, 23 Jan 2013 20:26:34 +0100
parents c20adbaf16af
children b9ba0d4d3abf
comparison
equal deleted inserted replaced
3205:f01540c62f8a 3206:d4bb8de7382f
78 78
79 YUE.onDOMReady(function(){ 79 YUE.onDOMReady(function(){
80 tooltip_activate(); 80 tooltip_activate();
81 show_more_event(); 81 show_more_event();
82 show_changeset_tooltip(); 82 show_changeset_tooltip();
83
84 YUE.on('quick_login_link','click',function(e){
85 // make sure we don't redirect
86 YUE.preventDefault(e);
87
88 if(YUD.hasClass('quick_login_link','enabled')){
89 YUD.setStyle('quick_login','display','none');
90 YUD.removeClass('quick_login_link','enabled');
91 }
92 else{
93 YUD.setStyle('quick_login','display','');
94 YUD.addClass('quick_login_link','enabled');
95 var usr = YUD.get('username');
96 if(usr){
97 usr.focus();
98 }
99 }
100 });
101 }) 83 })
102 </script> 84 </script>
103 </%def> 85 </%def>
104 <%def name="js_extra()"></%def> 86 <%def name="js_extra()"></%def>
105 ${self.js()} 87 ${self.js()}