Alert Dialogs

10 views
Skip to first unread message

Tomas Roig Martinez

unread,
Nov 15, 2013, 6:56:21 AM11/15/13
to themp...@googlegroups.com
Hello people,

I'm trying to show a alert dialog anytime the user clicks a icon. The problem is the alert only shows once and the only way to show it again, is to refresh the page...

Can anyone help me please?

Thanks

PD: This framework is awesome! Waiting for the new version :)

hano

unread,
Nov 18, 2013, 7:28:14 AM11/18/13
to themp...@googlegroups.com
Hi,
thanks for your kind words.
How do you show the alert? Try this please: 
M.DialogView.confirm({

    title: 'Confirm dialog',

    message: 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.'

})
Easiest way is to copy paste it into the console of your browser when a The-M-Project was loaded. To hide it, just hit one of the buttons.

Let me know if you have further questions.
best regards
marco

Tomas Roig Martinez

unread,
Nov 21, 2013, 5:44:23 PM11/21/13
to themp...@googlegroups.com
Hi Marco,

it's all solved now. I was doing this:

M.AlertDialogView.alert({
            title: 'Ayuda',
            message: 'Mensaje de ayuda'
        })

It was a silly mistake..

Thanks for your help!
Reply all
Reply to author
Forward
0 new messages