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.
|
window.addEventListener("load", function() {
|
|
(function($) {
|
|
$(function() {
|
|
|
|
let otrs_link = document.querySelector(".field-otrs > div > p.url > a").href;
|
|
console.log(otrs_link);
|
|
#alert(otrs_link);
|
|
|
|
let otrs_link_pret = otrs_link.replace(/%3B/g, ";");
|
|
let otrs_link_pretty = otrs_link_pret.replace(/%3D/g, "=");
|
|
|
|
console.log(otrs_link_pretty);
|
|
|
|
document.querySelector(".field-otrs > div > p.url > a").href = otrs_link_pretty;
|
|
|
|
|
|
});
|
|
})(django.jQuery);
|
|
});
|