Revert "Add animated loading indicator for some links."
This reverts commit 0fd520b78b
.
This commit is contained in:
parent
26cd95544a
commit
221a13c593
|
@ -151,15 +151,3 @@ function characterCount()
|
||||||
return $("#id_status").val().length + $("#id_spoiler_text").val().length;
|
return $("#id_status").val().length + $("#id_spoiler_text").val().length;
|
||||||
}
|
}
|
||||||
|
|
||||||
function animateLinks(selector)
|
|
||||||
{
|
|
||||||
$(selector).each(
|
|
||||||
function (index, elt) {
|
|
||||||
$(elt).on("click",
|
|
||||||
function () {
|
|
||||||
$('#page-load-indicator').fadeIn();
|
|
||||||
return true;
|
|
||||||
});
|
|
||||||
});
|
|
||||||
$('#page-load-indicator').fadeOut();
|
|
||||||
}
|
|
||||||
|
|
|
@ -57,7 +57,7 @@
|
||||||
<nav class="navbar is-fixed-top is-primary" role="navigation"
|
<nav class="navbar is-fixed-top is-primary" role="navigation"
|
||||||
aria-label="main navigation" id="main-nav-bar">
|
aria-label="main navigation" id="main-nav-bar">
|
||||||
<div class="navbar-brand">
|
<div class="navbar-brand">
|
||||||
<a class="navbar-item animate-link" href="{% url "home" %}">
|
<a class="navbar-item" href="{% url "home" %}">
|
||||||
{% if own_acct %}
|
{% if own_acct %}
|
||||||
<img src="{{ own_acct.avatar_static }}"
|
<img src="{{ own_acct.avatar_static }}"
|
||||||
class="image is-32x32 avatar"
|
class="image is-32x32 avatar"
|
||||||
|
@ -73,11 +73,11 @@
|
||||||
<div class="navbar-menu is-active" id="navMenu">
|
<div class="navbar-menu is-active" id="navMenu">
|
||||||
<!-- navbar start, navbar end -->
|
<!-- navbar start, navbar end -->
|
||||||
<div class="navbar-start">
|
<div class="navbar-start">
|
||||||
<a href="{% url "home" %}" class="navbar-item animate-link">
|
<a href="{% url "home" %}" class="navbar-item">
|
||||||
<span class="fa fa-home"></span>
|
<span class="fa fa-home"></span>
|
||||||
<span> Home</span>
|
<span> Home</span>
|
||||||
</a>
|
</a>
|
||||||
<a class="navbar-item animate-link" href="{% url "note" %}"
|
<a class="navbar-item" href="{% url "note" %}"
|
||||||
>
|
>
|
||||||
<span class="fa fa-bell-o"></span>
|
<span class="fa fa-bell-o"></span>
|
||||||
{% if preferences.notifications and not preferences.theme.is_brutalist %}
|
{% if preferences.notifications and not preferences.theme.is_brutalist %}
|
||||||
|
@ -97,29 +97,29 @@
|
||||||
<span > Notifications</span>
|
<span > Notifications</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</a>
|
</a>
|
||||||
<a class="navbar-item animate-link" href="{% url "local" %}">
|
<a class="navbar-item" href="{% url "local" %}">
|
||||||
<span class="fa fa-community"></span>
|
<span class="fa fa-community"></span>
|
||||||
<span > Local</span>
|
<span > Local</span>
|
||||||
</a>
|
</a>
|
||||||
<a class="navbar-item animate-link" href="{% url "fed" %}">
|
<a class="navbar-item" href="{% url "fed" %}">
|
||||||
<span class="fa fa-globe"></span>
|
<span class="fa fa-globe"></span>
|
||||||
<span > Federated</span>
|
<span > Federated</span>
|
||||||
</a>
|
</a>
|
||||||
<a class="navbar-item animate-link" href="{% url "toot" %}">
|
<a class="navbar-item" href="{% url "toot" %}">
|
||||||
<span class="fa fa-edit"> </span>
|
<span class="fa fa-edit"> </span>
|
||||||
<span > New Toot</span>
|
<span > New Toot</span>
|
||||||
</a>
|
</a>
|
||||||
<a class="navbar-item animate-link" href="{% url "search" %}">
|
<a class="navbar-item" href="{% url "search" %}">
|
||||||
<span class="fa fa-search"> </span>
|
<span class="fa fa-search"> </span>
|
||||||
<span > Search</span>
|
<span > Search</span>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="navbar-end" >
|
<div class="navbar-end" >
|
||||||
<a class="navbar-item animate-link" href="{% url "settings" %}">
|
<a class="navbar-item" href="{% url "settings" %}">
|
||||||
<span class="fa fa-gear"></span>
|
<span class="fa fa-gear"></span>
|
||||||
<span > Settings</span>
|
<span > Settings</span>
|
||||||
</a>
|
</a>
|
||||||
<a class="navbar-item animate-link" href="{% url "logout" %}">
|
<a class="navbar-item" href="{% url "logout" %}">
|
||||||
<span class="fa fa-power-off"></span>
|
<span class="fa fa-power-off"></span>
|
||||||
<span > Log out</span>
|
<span > Log out</span>
|
||||||
</a>
|
</a>
|
||||||
|
@ -170,9 +170,8 @@
|
||||||
{% if not preferences.no_javascript %}
|
{% if not preferences.no_javascript %}
|
||||||
|
|
||||||
<script type="application/javascript">
|
<script type="application/javascript">
|
||||||
$(function () {
|
$(document).ready(function () {
|
||||||
menuPrepare();
|
menuPrepare();
|
||||||
animateLinks(".animate-link");
|
|
||||||
});
|
});
|
||||||
|
|
||||||
{% if preferences.lightbox %}
|
{% if preferences.lightbox %}
|
||||||
|
|
|
@ -143,7 +143,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{{ toot.visibility }}
|
{{ toot.visibility }}
|
||||||
|
|
||||||
<a class="level-item animate-link" href="{% url "thread" toot.id %}">
|
<a class="level-item" href="{% url "thread" toot.id %}">
|
||||||
thread
|
thread
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue