about link: open in modal

This commit is contained in:
Laura Klünder 2018-12-23 20:11:16 +01:00
parent f1d5b0ffad
commit 927ef78449
3 changed files with 3 additions and 3 deletions

View file

@ -143,7 +143,7 @@ c3nav = {
.on('submit', 'form', c3nav._modal_submit)
.on('click', '.mobileclient-share', c3nav._mobileclient_share_click)
.on('click', '.mobileclient-shortcut', c3nav._mobileclient_shortcut_click);
$('header #user').on('click', c3nav._modal_link_click);
$('header #user, #about-link').on('click', c3nav._modal_link_click);
$('header h1 a').removeAttr('href');

View file

@ -3,7 +3,7 @@
{% block content %}
<main class="account">
{% if not request.mobileclient %}
{% if not request.mobileclient and not request.is_ajax %}
<a href="{% url 'site.index' %}" class="float-right">&laquo; {% trans 'back to c3nav' %}</a>
{% endif %}
<h2>{% trans 'About c3nav' %}</h2>

View file

@ -17,7 +17,7 @@
<a href="/api/" target="_blank">{% trans 'API' %}</a> //
<a href="https://twitter.com/c3nav/" rel="external" target="_blank">Twitter</a> //
<a href="https://github.com/c3nav/c3nav/" rel="external" target="_blank">GitHub</a> //
<a href="{% url 'site.about' %}">{% trans 'about c3nav' %}</a>
<a href="{% url 'site.about' %}" id="about-link">{% trans 'about c3nav' %}</a>
</section>
{% endif %}
<section id="map" data-bounds="{{ bounds }}"