Skip to content

Commit 5f78eda

Browse files
committed
Show a message if javascript is disabled. Fixes ietf-tools#380
- Legacy-Id: 2536
1 parent dad6332 commit 5f78eda

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

ietf/templates/liaisons/liaisondetail_edit.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,15 @@
1010
{% block content %}
1111
<h1>{% if liaison %}Edit liaison: {{ liaison }}{% else %}Send Liaison Statement{% endif %}</h1>
1212

13+
<div class="js-info">
14+
Your browser has Javascript disabled. Please enable javascript and reload the page.
15+
<script type="text/javascript">
16+
(function ($) {
17+
$(".js-info").hide();
18+
})(jQuery);
19+
</script>
20+
</div>
21+
1322
{% if not liaison %}
1423
<ul>
1524
<li>If you wish to submit your liaison statement by e-mail, then please send it to <a href="mailto:statements@ietf.org">statements@ietf.org</a></li>

static/css/liaisons.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,3 +86,10 @@ span.fieldRequired {
8686
list-style: none;
8787
color: red;
8888
}
89+
90+
.js-info {
91+
border: 1px dashed red;
92+
padding: 1em 2em;
93+
font-size: 1.2em;
94+
background-color: #ffdd88;
95+
}

0 commit comments

Comments
 (0)