workaround for ie ignoring everything
authorRadek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>
Mon, 19 Mar 2012 14:42:55 +0000 (15:42 +0100)
committerRadek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>
Mon, 19 Mar 2012 14:42:55 +0000 (15:42 +0100)
wolnelektury/static/css/header.css
wolnelektury/templates/superbase.html

index 1d0f5c4..4876371 100755 (executable)
@@ -206,6 +206,7 @@ a.menu span {
     border-width: 0 0 1px 0;
     padding: .5em 0;
     margin: 0;
     border-width: 0 0 1px 0;
     padding: .5em 0;
     margin: 0;
+    font-size: 1.3em;
 }
 
 #lang-menu:hover button,
 }
 
 #lang-menu:hover button,
index 138bffe..a4a7830 100644 (file)
                        {% catalogue_menu %}
                {% endcache %}
 
                        {% catalogue_menu %}
                {% endcache %}
 
-            <form action="{% url django.views.i18n.set_language %}" method="post">
             <div id="lang-menu" class="hoverget">
                 <span id='lang-button' class='mono hoverclick'>
                     <span class="lang-flag">⚐</span>
                     {% trans "Language versions" %}</span>
                 <div id="lang-menu-items">
                 {% for lang in LANGUAGES %}
             <div id="lang-menu" class="hoverget">
                 <span id='lang-button' class='mono hoverclick'>
                     <span class="lang-flag">⚐</span>
                     {% trans "Language versions" %}</span>
                 <div id="lang-menu-items">
                 {% for lang in LANGUAGES %}
-                    <button type="submit" name="language"
+                    <form action="{% url django.views.i18n.set_language %}" method="post">
+                    <input type="hidden" name="language" value="{{ lang.0 }}" />
+                    <button type="submit"
                         class="{% ifequal lang.0 LANGUAGE_CODE %}active{% endifequal %} mono"
                         class="{% ifequal lang.0 LANGUAGE_CODE %}active{% endifequal %} mono"
-                        value="{{ lang.0 }}">{{ lang.1 }}</button>
+                        >{{ lang.1 }}</button>
+                   </form>
                 {% endfor %}
                 </div>
             </div>
                 {% endfor %}
                 </div>
             </div>
-            </form>
             </div>
 
             <div class="clearboth"></div>
             </div>
 
             <div class="clearboth"></div>