1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.4 Change duration of top dropdown timed message

Discussion in 'Styling and Customization Questions' started by Optic, Jan 31, 2015.

  1. Optic

    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.jpg

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

    Any help would greatly be appreciated. :)
     
  2. Amaury

    Amaury Well-Known Member

    Try changing the number in Style Properties > Overlays and Tooltips > Overlay Opening Speed and Overlay Closing Speed.
     
  3. Optic

    Optic Well-Known Member

    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).
     
  4. Arty

    Arty Well-Known Member

    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);
    };
     

Share This Page