From: Marek Stępniowski <marek@stepniowski.com>
Date: Mon, 1 Dec 2008 22:21:03 +0000 (+0100)
Subject: Show user-info div only after loading javascript.
X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/bb03d0b6ed489fec4c0824dca91af10e38a9293d

Show user-info div only after loading javascript.
---

diff --git a/wolnelektury/media/js/catalogue.js b/wolnelektury/media/js/catalogue.js
index f86788be7..1dbd1b9c1 100644
--- a/wolnelektury/media/js/catalogue.js
+++ b/wolnelektury/media/js/catalogue.js
@@ -208,6 +208,7 @@
                 link.parent().remove();
             });
         });
-
+        
+        $('#user-info').show();
     });
 })(jQuery)
\ No newline at end of file
diff --git a/wolnelektury/templates/base.html b/wolnelektury/templates/base.html
index c65678b8c..fe97dc6ab 100644
--- a/wolnelektury/templates/base.html
+++ b/wolnelektury/templates/base.html
@@ -24,7 +24,7 @@
             <div id="logo">
                 <a href="/"><img src="/media/img/logo.png" alt="WolneLektury.pl - logo" /></a>
             </div>
-            <div id="user-info">
+            <div id="user-info" style="display:none">
                 {% if user.is_authenticated %}
                     <p>
                         Witaj, <strong>{{ user.username }}</strong>