Mattia Gosetto 4 anni fa
parent
commit
94bbe3f232
  1. 2
      liferay-plugins-sdk-6.2/themes/portos-private-fe-theme/docroot/_diffs/js/custom.js
  2. 2
      liferay-plugins-sdk-6.2/themes/portos-private-fe-theme/docroot/js/custom.js

2
liferay-plugins-sdk-6.2/themes/portos-private-fe-theme/docroot/_diffs/js/custom.js

@ -6,7 +6,7 @@ $(document).ready(function () {
var doAsUserId = getParameterByName('doAsUserId'); var doAsUserId = getParameterByName('doAsUserId');
if(doAsUserId != null){ if(doAsUserId != null){
$.each($('.doasuser-class a'), function(index, val) { $.each($('.doasuser-class a'), function(index, val) {
$(this).attr('href', $(this).attr('href')+'?doAsUserId='+doAsUserId); $(this).attr('href', $(this).attr('href')+'?doAsUserId='+encodeURIComponent(doAsUserId));
}); });
} }

2
liferay-plugins-sdk-6.2/themes/portos-private-fe-theme/docroot/js/custom.js

@ -6,7 +6,7 @@ $(document).ready(function () {
var doAsUserId = getParameterByName('doAsUserId'); var doAsUserId = getParameterByName('doAsUserId');
if(doAsUserId != null){ if(doAsUserId != null){
$.each($('.doasuser-class a'), function(index, val) { $.each($('.doasuser-class a'), function(index, val) {
$(this).attr('href', $(this).attr('href')+'?doAsUserId='+doAsUserId); $(this).attr('href', $(this).attr('href')+'?doAsUserId='+encodeURIComponent(doAsUserId));
}); });
} }

Caricamento…
Annulla
Salva