Sri
Sri

Reputation: 1505

Bootstrap purr alert message should not dismiss automatically

Am using Bootstrap-Purr for alert messaging. By using this, alert message appears and automatically disappears within few seconds. This should not happen. Alert message should be dismissed on only clicking close button, until then it should be viewed.

Tried a Fiddle

$.bootstrapPurr('<strong>My error Mesasge </strong> ,Try Again !', {
    type: 'danger',
    delayPause: true,
    align: 'center',
    allow_dismiss: false,
    allowDismissType: 'click',
    draggable: false,
    width:'350px',
    position:'absolute',
    top:'50px',
});

Any Idea will be appreciated. Thank you in advance.

Upvotes: 1

Views: 174

Answers (1)

Nayana_Das
Nayana_Das

Reputation: 1817

Set the 'delay' attribute to 0, thats all it will work

$.bootstrapPurr('This is another "purr" that will display until manually closed', {
                type: 'danger',
                align: 'left',
                align: 'center',
                delay: 0,
                stackupSpacing: 30
            });

Try the fiddle

Upvotes: 2

Related Questions