Skip to content

Commit

Permalink
Use regular single quotes in javascript code
Browse files Browse the repository at this point in the history
The backtics upset Javascript::Minifier

Related: https://progress.opensuse.org/issues/124469
  • Loading branch information
kalikiana authored and perlpunk committed Jul 25, 2023
1 parent b9e03ab commit cfb3f85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/javascripts/audit_log.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ function rescheduleProduct(url) {
const id = jqXHR.responseJSON?.scheduled_product_id;
const msg =
typeof id === 'number'
? `The product has been re-triggered as <a href="/admin/productlog?id=${id}">${id}</a>.`
? 'The product has been re-triggered as <a href="/admin/productlog?id=' + id + '">' + id + '</a>.'
: 'Re-scheduling the product has been triggered.';
addFlash('info', msg);
},
Expand Down

0 comments on commit cfb3f85

Please sign in to comment.