Show More
@@ -613,25 +613,20 b' var deleteNotification = function(url, n' | |||||
613 | * QUICK REPO MENU |
|
613 | * QUICK REPO MENU | |
614 | */ |
|
614 | */ | |
615 | var quick_repo_menu = function(){ |
|
615 | var quick_repo_menu = function(){ | |
616 |
YUE.on(YUQ('.quick_repo_menu'),' |
|
616 | YUE.on(YUQ('.quick_repo_menu'),'mouseenter',function(e){ | |
617 | //close all opened ones before ! |
|
617 | var menu = e.currentTarget.firstElementChild.firstElementChild; | |
618 | var actives = YUQ('.quick_repo_menu.active'); |
|
618 | if(YUD.hasClass(menu,'hidden')){ | |
619 | for(var i=0;i<actives.length;i++){ |
|
619 | YUD.replaceClass(e.currentTarget,'hidden', 'active'); | |
620 | var el = actives[i]; |
|
620 | YUD.replaceClass(menu, 'hidden', 'active'); | |
621 | if(el != e.currentTarget){ |
|
621 | } | |
622 | YUD.removeClass(el,'active'); |
|
622 | }) | |
623 | YUD.addClass(el.firstElementChild.firstElementChild,'hidden'); |
|
623 | YUE.on(YUQ('.quick_repo_menu'),'mouseleave',function(e){ | |
624 | } |
|
624 | var menu = e.currentTarget.firstElementChild.firstElementChild; | |
625 | } |
|
625 | if(YUD.hasClass(menu,'active')){ | |
626 | var menu = e.currentTarget.firstElementChild.firstElementChild; |
|
626 | YUD.replaceClass(e.currentTarget, 'active', 'hidden'); | |
627 |
|
|
627 | YUD.replaceClass(menu, 'active', 'hidden'); | |
628 | YUD.addClass(e.currentTarget,'active'); |
|
628 | } | |
629 | YUD.removeClass(menu,'hidden'); |
|
629 | }) | |
630 | }else{ |
|
|||
631 | YUD.removeClass(e.currentTarget,'active'); |
|
|||
632 | YUD.addClass(menu,'hidden'); |
|
|||
633 | } |
|
|||
634 | }) |
|
|||
635 | }; |
|
630 | }; | |
636 |
|
631 | |||
637 |
|
632 |
General Comments 0
You need to be logged in to leave comments.
Login now