Skip to content

Commit

Permalink
minor jquery correction to avoid deprecated call
Browse files Browse the repository at this point in the history
  • Loading branch information
aanunez committed Sep 23, 2022
1 parent 5885ef0 commit c75894a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/editTweaks.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ $(document).ready(() => {
// Load settings and prep them clicks (or, if new report, disable the buttons)
ReportTweaks.fn.loadSettings();
if (ReportTweaks.em.getUrlParameter('report_id')) {
$("#openWriteBackModal").click(ReportTweaks.fn.openModal);
$("#save-report-btn").click(ReportTweaks.fn.saveSettings);
$("#openWriteBackModal").on('click', ReportTweaks.fn.openModal);
$("#save-report-btn").on('click', ReportTweaks.fn.saveSettings);
} else {
$("input[name^=tweaks_]").prop('disabled', true);
}
Expand Down

0 comments on commit c75894a

Please sign in to comment.