Skip to content

Commit

Permalink
fixup! Moving js to a separate file, refactoring templates to use a c…
Browse files Browse the repository at this point in the history
…ommon layout
  • Loading branch information
mvalik committed Nov 3, 2023
1 parent 466ae8f commit cbfccec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion waiverdb/templates/new_waiver.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
Unable to create a waiver: <span id="error-desc"></span>
</div>
<div id="result-text-success" class="d-none">
<a id="result-link" href="#">New waiver created.</a>
<a id="result-link" href="#">New waiver</a> created. ID: <span id="new-waiver-id"></span>
</div>
</div>
<form>
Expand Down
1 change: 1 addition & 0 deletions waiverdb/templates/new_waiver.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ $(document).ready(function () {
$("#result-text-error").addClass("d-none");
$("#result-text-success").removeClass("d-none");
$("#result-link").attr("href", `${WAIVERS_URL}${data.id}`);
$("#new-waiver-id").text(data.id);
$("#waiver-result").removeClass("alert-danger d-none").addClass("alert-success");
},
error: function (jqXHR, textStatus) {
Expand Down

0 comments on commit cbfccec

Please sign in to comment.