diff --git a/portal/assets/js/ynhpanel.js b/portal/assets/js/ynhpanel.js index 9b40b18..d9c5292 100644 --- a/portal/assets/js/ynhpanel.js +++ b/portal/assets/js/ynhpanel.js @@ -133,6 +133,7 @@ domReady(function(){ var portal = document.createElement('a'); portal.setAttribute('id', 'ynhportal'); portal.setAttribute('href', '/yunohost/sso/'); + portal.setAttribute('class', 'disableAjax'); document.body.insertBefore(portal, null); // Create overlay element @@ -157,9 +158,9 @@ domReady(function(){ response = JSON.parse(r.responseText); // Add overlay header - overlay.innerHTML += '
' + - ''+ - '' + + overlay.innerHTML += '
' + + ''+ + '' + '

'+ response.uid +'

' + ''+ response.givenName + ' ' + response.sn +'' + ''+ response.mail +'' + @@ -170,7 +171,7 @@ domReady(function(){ // Add application links var links = []; Array.prototype.forEach.call(response.app, function(app, n){ - links.push('
  • '+app.name+'
  • '); + links.push('
  • '+app.name+'
  • '); }); overlay.innerHTML += '
      '+ links.join('') +'
    ';