Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Notifications timeout ( set ) ?

The popup notifications, how can we make them persistent. In other words remove timeout.

They briefly appear for about 1 millisecond lol for us

There was an error rendering this rich post.

Comments

  • KasperKasper Scholar of the Bits Copenhagen Vanilla Staff
    edited February 2013

    How about overriding the setAutoDismiss() function:

    gdn.setAutoDismiss = function() {
        var timerId = $('div.InformMessages').attr('autodismisstimerid');
        if (!timerId) {
            timerId = setTimeout(function() {
                $('div.InformWrapper.AutoDismiss').fadeOut('fast', function() {
                    $(this).remove();
                });
                $('div.InformMessages').removeAttr('autodismisstimerid');
            }, 7000);
            $('div.InformMessages').attr('autodismisstimerid', timerId);
        }
    }
    

    Kasper Kronborg Isager (kasperisager) | Freelance Developer @Vanilla | Hit me up: Google Mail or Vanilla Mail | Find me on GitHub

  • 422422 Developer MVP

    will try that Kasper thanks

    There was an error rendering this rich post.

  • 422422 Developer MVP
    edited February 2013

    Ok it works. But.... I am not sure if its perfect, the other issue which is now more apparent, is messages seem to take ages to be displayed.

    Exmple: two browsers side by side, logged in to two diff accounts ( diff browsers ) safari or chrome and firefox.

    User a sends user b message, on firefox ( receivers browser ) the message eventually appears some 10 minutes later.

    Chrome / Safari, I am not sure it does appear. We havent touched the global.js file aside from changing timeout to a larger number. But the message has to be displayed before that timer is fired lol. Is there a PING switch somewhere , an event listener where we can set the browser to ping for new messages every x seconds/ minutes whatever.

    Not sure how vanilla have it set here, but it seems instantaneous.

    There was an error rendering this rich post.

Sign In or Register to comment.