Show More
@@ -332,25 +332,28 b'' | |||
|
332 | 332 | %endif |
|
333 | 333 | ${usermenu()} |
|
334 | 334 | %endif |
|
335 |
|
|
|
336 |
|
|
|
337 | function qfilter(){ | |
|
338 | var nodes = YUQ('ul#repo_switcher_list li a.repo_name'); | |
|
339 | var target = 'q_filter_rs'; | |
|
340 |
|
|
|
341 |
|
|
|
342 |
|
|
|
343 |
|
|
|
344 |
|
|
|
345 | var loaded = YUD.hasClass('repo_switcher','loaded'); | |
|
346 | if(!loaded){ | |
|
347 | YUD.addClass('repo_switcher','loaded'); | |
|
348 | ypjax("${h.url('repo_switcher')}",'repo_switcher_list', | |
|
349 | function(o){qfilter();}, | |
|
350 | function(o){YUD.removeClass('repo_switcher','loaded');} | |
|
351 | ,null); | |
|
352 |
|
|
|
353 | return false; | |
|
335 | <script type="text/javascript"> | |
|
336 | YUE.on('repo_switcher','mouseover',function(){ | |
|
337 | var target = 'q_filter_rs'; | |
|
338 | var qfilter_activate = function(){ | |
|
339 | var nodes = YUQ('ul#repo_switcher_list li a.repo_name'); | |
|
340 | var func = function(node){ | |
|
341 | return node.parentNode; | |
|
342 | } | |
|
343 | q_filter(target,nodes,func); | |
|
344 | } | |
|
345 | ||
|
346 | var loaded = YUD.hasClass('repo_switcher','loaded'); | |
|
347 | if(!loaded){ | |
|
348 | YUD.addClass('repo_switcher','loaded'); | |
|
349 | ypjax("${h.url('repo_switcher')}",'repo_switcher_list', | |
|
350 | function(o){qfilter_activate();YUD.get(target).focus()}, | |
|
351 | function(o){YUD.removeClass('repo_switcher','loaded');} | |
|
352 | ,null); | |
|
353 | }else{ | |
|
354 | YUD.get(target).focus(); | |
|
355 | } | |
|
356 | return false; | |
|
354 | 357 | }); |
|
355 | </script> | |
|
358 | </script> | |
|
356 | 359 | </%def> |
General Comments 0
You need to be logged in to leave comments.
Login now