Skip to content

Commit

Permalink
fixup! fixup! Moving js to a separate file, refactoring templates to …
Browse files Browse the repository at this point in the history
…use a common layout
  • Loading branch information
mvalik committed Nov 4, 2023
1 parent cbfccec commit 6cf2224
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion waiverdb/templates/new_waiver.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ $(document).ready(function () {
$("#result-text-error").removeClass("d-none");
let addition = "";
if(jqXHR.status === 401) {
addition = `<a href="{{ url_for('api_v1.permissions_resource', testcase='${encodeURIComponent(testcaseName)}', html='on') }}" target="_blank">See who has permissions to waive ${testcaseName}</a>`;
addition = `<a href="{{ url_for('api_v1.permissions_resource', testcase='${encodeURIComponent(testcaseName)}', html='on') | safe }}" target="_blank">See who has permissions to waive ${testcaseName}</a>`;
}
$("#error-desc").html(`Creation failed, status: ${jqXHR.status} ${jqXHR.statusText} ${addition}`);
$("#waiver-result").removeClass("alert-success d-none").addClass("alert-danger");
Expand Down

0 comments on commit 6cf2224

Please sign in to comment.