From c75f95c3b5b2bc530c06f09a02cf7d04578d4dfd Mon Sep 17 00:00:00 2001
From: Julian Rother <julianr@fsmpi.rwth-aachen.de>
Date: Thu, 16 Feb 2017 00:43:22 +0100
Subject: [PATCH] Replaced auto-collapse hack with another hack (#222)

---
 templates/base.html    | 2 +-
 templates/courses.html | 5 +++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/templates/base.html b/templates/base.html
index 725f42f..2a63033 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -109,7 +109,7 @@
 				{% if page_border == 0 %}
 				<div class="col-xs-12">
 				{% else %}
-				<div id="content-col" class="col-xs-12 col-md-offset-{{ page_border }} col-md-{{ 12-(2*page_border) }}">
+				<div class="col-xs-12 col-md-offset-{{ page_border }} col-md-{{ 12-(2*page_border) }}">
 				{% endif %}
 					{% for msg in get_flashed_messages() %}
 					<div class="hidden-print alert alert-danger" role="alert">{{ msg|safe }}</div>
diff --git a/templates/courses.html b/templates/courses.html
index 71d1664..21c2dee 100644
--- a/templates/courses.html
+++ b/templates/courses.html
@@ -56,10 +56,11 @@
 		</ul>
 	</div></div>
 </div>
-{% endfor %}
+<div class="visible-xs" id="xs-check"></div>
 <script>
-if ($("#content-col").css("margin-left") == "0px") {
+if($("#xs-check").is(":visible")) {
 	$("#zeitlos").removeClass('in')
 }
 </script>
+{% endfor %}
 {% endblock %}
-- 
GitLab