XF 1.4 Change duration of top dropdown timed message

Optic

Well-known member
I would like to extend the duration of the top dropdown message that appears when you log in, save changes, etc.

.xenOverlay.timedMessage:
changes.webp

It looks like it appears for about 3 seconds. Is this an easy option to change?

Any help would greatly be appreciated. :)
 
Thanks for the suggestion,

But that changed the transition overlays for the member card or when you quick edit a post.

The one I'm after is the dropdown one that appears and closes itself after ~3 seconds after you submit a form for example (e.g. a signature change).
 
Its harcoded in xenforo.js:
Code:
        XenForo.alert(ajaxData.message, '', 4000);
You can overwrite XenForo.alert with your own function that changes timer, something like this:
Code:
var oldAlert = XenForo.alert;
XenForo.alert = function()
{
  if (arguments.length > 2 && arguments[2] === 4000)
  {
    arguments[2] = 8000;
  }
  oldAlert.apply(this, arguments);
};
 
Top Bottom