Change popup menu delay

guclusat

Tanınmış Üye
Süper Moderatör
Açılır menü gecikmesini değiştir

This will change the delay for popup menus in the navbar. For example:

xenforo.png

Edit this file:

js/xenforo/xenforo.js

Change the number in red:

HTML:
XenForo.PopupMenu.prototype={__construct:function(a){this.$container=a;this.$menu=this.$container.find(".Menu").appendTo("body");this.menuVisible=!1;if(!this.$menu.length)return console.warn("Unable to find menu for Popup %o",this.$container),!1;this.$menu.id=XenForo.uniqueId(this.$menu);this.contentSrc=

this.$menu.data("contentSrc");this.contentDest=this.$menu.data("contentDest");this.unreadDisplayTimeout=this.loading=null;this.newlyOpened=!1;this.$clicker=a.find('[rel="Menu"]').first().click(c.context(this,"controlClick"));XenForo.isTouchBrowser()||this.$clicker.mouseover(c.context(this,"controlHover")).hoverIntent({sensitivity:1,interval:100,timeout:0,over:c.context(this,"controlHoverIntent"),out:function(){}});this.$control=this.addPopupGadget(this.$clicker);this.popupGroup=this.$control.closest("[data-popupGroup]").data("popupGroup")},

Setting it to 0 will cause the menus to popup instantly without any delay. You are editing the minified javascript so it looks messy due to no formatting.
 

Eklentiler

  • memberpopup1.jpg
    memberpopup1.jpg
    41,5 KB · Görüntüleme: 7
Son düzenleme:
Geri
Yukarı