[fix] Do not add hash when setAttribute an id.

This commit is contained in:
opi 2015-10-07 09:50:55 +02:00
parent c61521e880
commit 63fc1a3edb

View file

@ -202,7 +202,7 @@ domReady(function(){
// Create portal link
var portal = document.createElement('a');
portal.setAttribute('id', '#ynh-overlay-switch');
portal.setAttribute('id', 'ynh-overlay-switch');
portal.setAttribute('href', '/yunohost/sso/');
portal.setAttribute('class', 'disableAjax');
document.body.insertBefore(portal, null);