website: remote ?maxAge from link dialog

Follow-up for 89affa49fe.
This commit is contained in:
Thaddee Tyl 2016-04-10 14:02:23 +02:00
parent 89affa49fe
commit e3535f7a42

View File

@ -1250,6 +1250,8 @@ function markupDialog(tr) {
var trimg = tr.querySelector('img').src;
var th = tr.firstElementChild;
var link = th.dataset.link? th.dataset.link: '';
// Remove the ?maxAge parameter from the query string.
link.replace(/[\?&]maxAge=\d+$|maxAge=\d+&/, '');
copyForm.img.value = trimg;
copyForm.url.value = link;
// Insert documentation.