Cannot get the dismissqueue property to work without adjusting noty source #102

Closed
KrekkieD opened this Issue Oct 15, 2012 · 2 comments

Projects

None yet

4 participants

@KrekkieD

I can only get the queue functionality to work (topCenter layout) when I comment out this section in noty.js (approx lines 485 - 495):

    if (!options.hasOwnProperty('dismissQueue')) {
        if (options.layout == 'topLeft'
            || options.layout == 'topRight'
            || options.layout == 'bottomLeft'
            || options.layout == 'bottomRight') {
            options.dismissQueue = true;
        } else {
            options.dismissQueue = false;
        }
    }

My default config is:

$.noty.defaults = {
    layout:'topCenter',
    theme:'defaultTheme',
    type:'alert',
    text:'',
    dismissQueue:true,
    template:'<div class="noty_message"><span class="noty_text"></span><div class="noty_close"></div></div>',
    animation:{
        open:{height:'toggle'},
        close:{height:'toggle'},
        easing:'swing',
        speed:500
    },
    timeout:4000,
    force:false,
    modal:false,
    closeWith:['click'],
    callback:{
        onShow:function () {
        },
        afterShow:function () {
        },
        onClose:function () {
        },
        afterClose:function () {
        }
    },
    buttons:false
};

I create notys using:

noty({text: message_here, type: type_here}); 
@fabdouglas

I noticed the same thing. No "big" notifications cannot be queued. I've removed this limitation for my site.

@reharik
reharik commented Jan 2, 2013

the problem, near as I can tell, is that the else clause always set's dismissqueue to false. You could just comment out the else clause and preserve whatever the for is trying to do.

@needim needim closed this Aug 28, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment