Show user-info div only after loading javascript.
authorMarek Stępniowski <marek@stepniowski.com>
Mon, 1 Dec 2008 22:21:03 +0000 (23:21 +0100)
committerMarek Stępniowski <marek@stepniowski.com>
Mon, 1 Dec 2008 22:21:03 +0000 (23:21 +0100)
wolnelektury/media/js/catalogue.js
wolnelektury/templates/base.html

index f86788b..1dbd1b9 100644 (file)
                 link.parent().remove();
             });
         });
                 link.parent().remove();
             });
         });
-
+        
+        $('#user-info').show();
     });
 })(jQuery)
\ No newline at end of file
     });
 })(jQuery)
\ No newline at end of file
index c65678b..fe97dc6 100644 (file)
@@ -24,7 +24,7 @@
             <div id="logo">
                 <a href="/"><img src="/media/img/logo.png" alt="WolneLektury.pl - logo" /></a>
             </div>
             <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>
                 {% if user.is_authenticated %}
                     <p>
                         Witaj, <strong>{{ user.username }}</strong>