Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overlay and sticky button not working #29

Open
Cucurrucho opened this issue Aug 12, 2016 · 1 comment
Open

Overlay and sticky button not working #29

Cucurrucho opened this issue Aug 12, 2016 · 1 comment

Comments

@Cucurrucho
Copy link

Hello, first thing thank you very much for your plugin, its very good!
Im trying to use the overlay option and its not working
my amaran function:

function overlayingMsg() {
    $.amaran({
        'message'   :'My first example!',
        'overlay' :true,
        'sticky':true,
        'inEffect':'slideTop',
        'outEffect':'slideLeft',
        'overlayColor': 'orange'
    });
};

my application of the function:

<button type="button" class="btn btn-success btn-lg" style="margin: 10px" 
onclick="overlayingMsg()">Show overlaying message</button>
<script src="../assets/javascripts/data/alerts/amaran/overlayingMsg.js"></script>

I'm using jquery 2.2.4
same thing happens with the stickyButton option.

thanks in advance

@hakanersu
Copy link
Owner

hi @Cucurrucho

I can't reproduce issue with latest amaranjs build and jquery 2.2.4 ( http://amaranjs.com/issue/issue-29.html ). Do you have any console error messages?

If your overlayingMsg function inside document ready you can get an undefined function error.

The following code should work.

function overlayingMsg() {
    $.amaran({
        'message'   :'My first example!',
        'overlay' :true,
        'sticky':true,
        'inEffect':'slideTop',
        'outEffect':'slideLeft',
        'overlayColor': 'orange'
    });
};
$(function(){

});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants