arian/MooDialog — Issue #16: setContent vs buttons
Author: manner
Created: 2011-10-28 10:36:36+00:00
State: open

Hello,

I am happy to find this scipt. Great job again!

I have a problem with the setContent method.
If I use setContent the buttons are disappear. I have tried with mootools 1.3, 1.4.

$('alert').addEvent('click', function(e){
e.stop();
var box = new MooDialog.Alert('This is an alert message').setContent(new Element('div', {html: 'my html code'}));
});

Basicly I would like to create a confirm box with form data summary. (A table with the form data and a question : "This values will be posted, Continue?").
The MooDialog.Confirm works same way.

Is this a normal way or is this a bug. Or do I have a mistake in the code?
Are there any solution to solve this problem?

Thanks in advance!