You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
629 B

  1. window.addEventListener("load", function() {
  2. (function($) {
  3. $(function() {
  4. let otrs_link = document.querySelector(".field-otrs > div > p.url > a").href;
  5. console.log(otrs_link);
  6. alert(otrs_link);
  7. let otrs_link_pret = otrs_link.replace(/%3B/g, ";");
  8. let otrs_link_pretty = otrs_link_pret.replace(/%3D/g, "=");
  9. console.log(otrs_link_pretty);
  10. document.querySelector(".field-otrs > div > p.url > a").href = otrs_link_pretty;
  11. });
  12. })(django.jQuery);
  13. });