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