summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2015-12-14 14:57:48 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2015-12-14 14:57:48 (GMT)
commit717eb71c2f713918447b352c173584504119a7f1 (patch)
tree93a1ca90b039e844c453ac4c51eeffe1474bb0fe
parent31d43cec1bc2e6e0625667cfb28f14fc1efc250c (diff)
downloadvincennes-2014-717eb71c2f713918447b352c173584504119a7f1.zip
vincennes-2014-717eb71c2f713918447b352c173584504119a7f1.tar.gz
vincennes-2014-717eb71c2f713918447b352c173584504119a7f1.tar.bz2
misc: don't play with DOM for responsiveness (#9326)
The #acces block would get removed and not reinserted correctly...
-rw-r--r--static/js/app.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/static/js/app.js b/static/js/app.js
index cd7e998..bb752c1 100644
--- a/static/js/app.js
+++ b/static/js/app.js
@@ -21,7 +21,7 @@ function layouting() {
} else {
if (window.matchMedia('(min-width: 992px)').matches) {
$("#nav").detach().insertBefore('#main-content');
- $("#access").detach().insertBefore('#main');
+ $("#access").show();
$("#events").detach().appendTo('#col-right > .row');
$("#promo").detach().insertAfter('#events');
$("#procedures").detach().appendTo('#header');
@@ -34,6 +34,7 @@ function layouting() {
$("#procedures").detach().insertAfter('#navigation');
$("#events").detach().insertAfter('#main');
+ $("#access").hide();
$("#access").detach().insertAfter('#events');
$("#right_bar").detach().insertAfter('#access');
$("#promo").detach().insertAfter('#right_bar');