fabien-d / alertify.js

JavaScript Alert/Notification System
http://fabien-d.github.com/alertify.js/
4.26k stars 725 forks source link

Make the confirmation pop up fly on top of a div #142

Closed AboOmar closed 10 years ago

AboOmar commented 11 years ago

Hey, great work AWESOME plugin,

But I need some simple requests, how it can be done ?

If you take a look inside Outloo.com e-mail client when you click on delete button a very small div (contains Yes or No) fly with very simple fade and slide under or above the clicked button ask the user to take action, Can this feature applied ?

Another request Is there any METRO theme for this plugin ?

Regards :)

fabien-d commented 11 years ago

There is no Metro theme with the plugin, but it would just be creating a new theme in CSS. I'll accept a PR!

I don't have an outloook account, I sort of understand the request, which would require quite a bit of tweaking - but could you provide a screenshot just to confirm.

AboOmar commented 11 years ago

o.k, thanks my friend

image

as you can see in this screenshot, when I clicked the button cancel, this little pop-up comes from top to down with little cool sliding animation, ask me to cancel or not.

So what do you think of initializing the plugin on specific DOM element, after that the pop-up appears on top of or bottom from the clicked element with a cool sliding animation :+1:

Another issue, I am actually didn't remember itis implemented or not with alertify confirm, is to alow me disable any interaction on my screen elements through event or something like that, because the message appears but I can still click any element on the page.

Thanks :)

fabien-d commented 11 years ago

Initializing on a specific DOM element would require some tweaking. I can mark it as a nice to have or accept a PR if anyone wants to implement.

Clicking through is a known issue. There is a fix in the issue details, which I will implement soon.