grandlyon-sau: authorize visiting "urgence" pages (#26242)

This commit is contained in:
Serghei Mihai 2018-09-07 16:37:52 +02:00
parent 8da1032ee7
commit d5450625e5
2 changed files with 0 additions and 26 deletions

View File

@ -3,15 +3,4 @@ $(function() {
var sheet = document.head.appendChild(document.createElement("style")).sheet;
sheet.insertRule('#content div.bandeau div {background-image: url("' + document.body.attributes['data-picture'].value + '"); background-repeat: no-repeat; background-size: calc(100% - 4em); height: 350px; background-position: center bottom', 0);
}
$('div.menucell.urgence a').click(function(e) {
e.preventDefault();
var $selected = $(this).parents('li');
$.each($selected.parents('ul').children(), function(index, element) {
if ($(element).data('menu-page-id') != $selected.data('menu-page-id')) {
$(element).removeClass('selected');
}
});
$(this).parents('li').toggleClass('selected');
});
});

View File

@ -1,15 +0,0 @@
{% load combo %}
{% if menuitems %}
<ul>
{% spaceless %}
{% for menuitem in menuitems %}
<li data-menu-page-id="{{ menuitem.page.id }}" class="menu-{{ menuitem.page.slug }}">
<a href="{% page_absolute_url menuitem.page %}"><span>{{ menuitem.page.title }}</span></a>
<div class="page-description">
{{ menuitem.page.description }}
</div>
</li>
{% endfor %}
{% endspaceless %}
</ul>
{% endif %}