简体   繁体   中英

Pnotify - show notification over modal background

I'm using Bootstrap js to show a modal window, where the user can add some values. If there's a problem with the addition i want to notify it, by using pnotify notifications.

Everything well so far, the problem is that the pnotify notification appears under the modal window's darkened background, and i would like instead to appear on top of that.

$.pnotify({
            title: 'Regular Notice',
            text: 'Check me out! I\'m a notice.',
            nonblock: true,
            history: false,
            delay: 60000
        });

This is how it currently appears: http://screencloud.net/v/ihln

How could i achieve this?

Thanks!

It has nothing to do with modals actually. This is because you are using old version of pnotify with bootstrap2 styles and it has no css class assigned for default notify, hence it has no background whatsoever.

Update your pnotify version and set $.pnotify.defaults.styling = "bootstrap3";

Here is updated Fiddle .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM