Skip to content

Commit

Permalink
Fix a few bits of broken JS
Browse files Browse the repository at this point in the history
  • Loading branch information
bfirsh authored and jonathan-s committed Feb 28, 2019
1 parent bd7b8fd commit 8b5c40a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions bank/templates/accounts_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ <h3>Transfer DRFT (Ɖ)</h3>
</form>
</div>
</div>
{% endblock %}

{% block extrajs %}
<script src="{% static 'js/chosen.jquery.min.js' %}"></script>
<script src="{% static 'js/jquery.validate.min.js' %}"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion core/templates/booking_manage.html
Original file line number Diff line number Diff line change
Expand Up @@ -170,11 +170,11 @@ <h3>Bill Details</h3>
</div>
{% endif %}

{% include "snippets/manage-page-confirm-dialogs.html" %}
</div>
{% endblock %}

{% block extrajs %}
{% include "snippets/manage-page-confirm-dialogs.html" %}
<script language="JavaScript">

function UpdateRefundValue(id, val, field_status) {
Expand Down
1 change: 1 addition & 0 deletions core/templates/snippets/manage-page-confirm-dialogs.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
</p>
</div>

{# FIXME: This must always be included in extrajs block. This really needs refactoring. #}
<script>
$("#dialog-warn-charge").dialog({
autoOpen: false,
Expand Down
2 changes: 1 addition & 1 deletion core/templates/subscription_manage.html
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,11 @@ <h3 class="row-spacer clickable text-muted" onclick="toggleBillCustomize({{bill.
</div> <!-- end col-md-7 -->
</div>

{% include "snippets/manage-page-confirm-dialogs.html" %}
</div>
{% endblock %}

{% block extrajs %}
{% include "snippets/manage-page-confirm-dialogs.html" %}
<script language="JavaScript">


Expand Down

0 comments on commit 8b5c40a

Please sign in to comment.