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