First time here? Check out the FAQ!
1

How come the greeting for first time users appears?

Hi

If I understand it correctly, the template for the greeting is widgets/system_messages.html but the div block has

style="display:none".

How come when a user arrives for the first time, the div block becomes

style=""

Which function changes the style of that block?

Thanks

kate_r's avatar
107
kate_r
asked 2013-05-18 07:21:03 -0600
Evgeny's avatar
13.2k
Evgeny
updated 2013-05-18 12:07:25 -0600
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

The message is shown by javascript, by jQuery fadeIn() at: askbot/media/js/utils.js:notify().

Evgeny's avatar
13.2k
Evgeny
answered 2013-05-18 12:06:53 -0600
edit flag offensive 0 remove flag delete link

Comments

So does that mean widgets/system_messages.html is not used at all to generate the greeting?

kate_r's avatar kate_r (2013-05-20 10:45:30 -0600) edit

That specific greeting shows just once, there was a complaint when it was showing to the anonymous users every time. The way messages work: they are initially printed with display none, then faded in with js to get the animation effect.

Evgeny's avatar Evgeny (2013-05-20 13:44:47 -0600) edit
add a comment see more comments