Mercurial > kallithea
comparison rhodecode/templates/base/root.html @ 1778:defcf245f3e9 beta
fixes #229 repo sorting is not working.
- implemented repo sorting using YUI dataTable
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Fri, 16 Dec 2011 20:13:23 +0200 |
parents | c83d3d42ab92 |
children | f91d3f9b7230 |
comparison
equal
deleted
inserted
replaced
1777:910e3a0d27c0 | 1778:defcf245f3e9 |
---|---|
119 YUD.addClass('quick_login_link','enabled'); | 119 YUD.addClass('quick_login_link','enabled'); |
120 YUD.get('username').focus(); | 120 YUD.get('username').focus(); |
121 } | 121 } |
122 }); | 122 }); |
123 | 123 |
124 YUE.on(YUQ('.quick_repo_menu'),'click',function(e){ | 124 // hover menu |
125 var menu = e.currentTarget.firstElementChild; | |
126 if(YUD.hasClass(menu,'hidden')){ | |
127 YUD.addClass(e.currentTarget,'active'); | |
128 YUD.removeClass(menu,'hidden'); | |
129 }else{ | |
130 YUD.removeClass(e.currentTarget,'active'); | |
131 YUD.addClass(menu,'hidden'); | |
132 } | |
133 }) | |
134 | |
135 YUE.on(window,'scroll',function(){ | 125 YUE.on(window,'scroll',function(){ |
136 if(YUD.getDocumentScrollTop() > 45){ | 126 if(YUD.getDocumentScrollTop() > 45){ |
137 YUD.addClass('header-inner','hover'); | 127 YUD.addClass('header-inner','hover'); |
138 } | 128 } |
139 else{ | 129 else{ |
140 YUD.removeClass('header-inner','hover'); | 130 YUD.removeClass('header-inner','hover'); |
141 } | 131 } |
142 }) | 132 }) |
143 }) | 133 }) |
144 </script> | 134 </script> |
145 </%def> | 135 </%def> |
146 <%def name="js_extra()"></%def> | 136 <%def name="js_extra()"></%def> |
147 ${self.js()} | 137 ${self.js()} |