Commit c0144598 authored by Sylvain Kerkour's avatar Sylvain Kerkour

replace jquery by cash

parent 0cb1e072
Pipeline #147465031 passed with stages
in 59 seconds
......@@ -166,7 +166,7 @@ $(document).ready(function() {
// subscribe
if ($("#fe-subscribe-button-input").length) {
$("#fe-subscribe-button-input").click(function(e) {
$("#fe-subscribe-button-input").on('click', function(e) {
e.preventDefault();
subscribeToNewsletter($('#fe-subscribe-email-input').val());
});
......@@ -208,7 +208,7 @@ $(document).ready(function() {
if ($("#osw-unsubscribe-btn").length) {
$("#osw-unsubscribe-btn").click(function(e) {
$("#osw-unsubscribe-btn").on('click', function(e) {
e.preventDefault();
unsubscribe();
});
......
......@@ -14,7 +14,7 @@
{{ partial "footer.html" . }}
</footer>
<script src="{{ "js/jquery-3.5.1.slim.min.js" | relURL }}"></script>
<script src="{{ "js/cash-0.7.1.min.js" | relURL }}"></script>
{{ with resources.Get "js/index.js" | minify }}
<script type="text/javascript">{{ .Content | safeJS }}</script>
{{ end }}
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment