mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-19 08:39:06 +01:00
LSview: Fix validated URL generation
This commit is contained in:
parent
7eac609bd9
commit
f9ebf06a63
1 changed files with 6 additions and 2 deletions
|
@ -121,7 +121,9 @@ var LSview = new Class({
|
|||
},
|
||||
|
||||
removeFromA: function(a) {
|
||||
document.location = a.href+'?valid';
|
||||
var validatedURL = new URL(a.href);
|
||||
validatedURL.searchParams.set('valid', '1');
|
||||
document.location = validatedURL.href;
|
||||
},
|
||||
|
||||
onCustomActionBtnClick: function(event,a) {
|
||||
|
@ -153,7 +155,9 @@ var LSview = new Class({
|
|||
},
|
||||
|
||||
executeCustomActionFromA: function(a) {
|
||||
document.location = a.href+'&valid';
|
||||
var validatedURL = new URL(a.href);
|
||||
validatedURL.searchParams.set('valid', '1');
|
||||
document.location = validatedURL.href;
|
||||
},
|
||||
|
||||
toggleLSviewActions: function(ul) {
|
||||
|
|
Loading…
Reference in a new issue