Use no_javascript preference in place of theme.is_brutalist in some places

This commit is contained in:
Jason McBrayer 2018-10-09 13:08:02 -04:00
parent 275e6b1fca
commit 2d0fd95d5f
4 changed files with 6 additions and 4 deletions

View File

@ -34,6 +34,8 @@
href="{% static 'css/bulma-badge.min.css' %}">
<link rel="stylesheet"
href="{% static 'css/photobox.css' %}">
{% endif %}
{% if not preferences.no_javascript %}
<script type="text/javascript" src="{% static 'js/jquery.min.js' %}"></script>
<script type="text/javascript" src="{% static 'js/intercooler.js' %}"></script>
<script type="text/javascript" src="{% static 'js/jquery.photobox.js' %}"></script>
@ -165,7 +167,7 @@
</div>
</footer>
{% if not preferences.theme.is_brutalist %}
{% if not preferences.no_javascript %}
<script type="application/javascript">
$(document).ready(function () {

View File

@ -39,7 +39,7 @@
</a>
</div>
</div>
{% if not preferences.theme.is_brutalist %}
{% if not preferences.theme.no_javascript %}
<script type="application/javascript">
Intercooler.ready(characterCountSetup);
</script>

View File

@ -127,7 +127,7 @@
class="level-item emoji-link" title="custom emoji reference">😊</a>
</div>
</div>
{% if not preferences.theme.is_brutalist %}
{% if not preferences.no_javascript %}
<script type="application/javascript">
fileButtonUpdaters();
Intercooler.ready(fileButtonUpdaters);

View File

@ -29,7 +29,7 @@ mastodon.status_context(<numerical id>)
<hr class="is-hidden">
{% endfor %}
{% if not preferences.theme.is_brutalist %}
{% if not preferences.no_javascript %}
<script type="application/javascript">
Intercooler.ready(expandCWButtonPrepare);
</script>