Layout: allways add div for important message
authorWilfried Goesgens <dothebart@citadel.org>
Sat, 30 Jun 2012 14:32:58 +0000 (16:32 +0200)
committerWilfried Goesgens <dothebart@citadel.org>
Sat, 30 Jun 2012 14:32:58 +0000 (16:32 +0200)
  - if something special arizes, we show the important_message mechanism.
  - this div so far is only added, if there is something to show.
  - in order to display events at runtime (from ajax replies) we now add it always.
  - hide it if it should be empty
  - only add the autohide-trigger if its shown.

webcit/static/t/trailing.html

index 75a7aa20792b2dc7ffa2c00cfdab70a7a4d5f957..5eea0c85bdc57958a8c380af7a9e6501930188d4 100644 (file)
@@ -1,14 +1,18 @@
 <!-- start trailing.html -->
-<?!("COND:IMPMSG", 1)>
-<div id="important_message">
+<div id="important_message"
+<??("COND:IMPMSG", 1)>
+style="visibility: hidden;"
+<?!("X", 1)>
+>
 <span class="imsg">
-<?IMPORTANTMESSAGE>
+aoeuaoeu<?IMPORTANTMESSAGE>
 </span><br>
 </div>
+<?!("COND:IMPMSG", 2)>
 <script type="text/javascript">
   setTimeout('hide_imsg_popup()', 5000);
 </script>
-<?!("X", 1)>
+<?!("X", 2)>
 
 <noscript><div id="noscript_warning">
        <?_("WARNING: You have JavaScript disabled in your web browser.  Many functions of this system will not work properly.")>