diff --git a/portal/assets/js/global.js b/portal/assets/js/global.js index 5ba7660..d64be69 100644 --- a/portal/assets/js/global.js +++ b/portal/assets/js/global.js @@ -1,16 +1,4 @@ -// scripts loader -function loadScript(url, callback) { - var script = document.createElement('script'); - script.type = 'text/javascript'; - script.src = url; - // There are several events for cross browser compatibility. - script.onreadystatechange = callback; - script.onload = callback; - // Fire the loading - document.head.appendChild(script); -} - // handle app links so they work both in plain info page and in the info iframe called from ynhpanel.js function appClick (evnt, url) { diff --git a/portal/assets/js/ynhpanel.js b/portal/assets/js/ynhpanel.js index b104c4a..0dd99b1 100644 --- a/portal/assets/js/ynhpanel.js +++ b/portal/assets/js/ynhpanel.js @@ -261,14 +261,6 @@ domReady(function(){ portalStyle.setAttribute("href", '/ynhpanel.css'); document.getElementsByTagName("head")[0].insertBefore(portalStyle, null); - // Custom style from theme id specified in config - var portalThemeStyle = document.createElement("link"); - portalThemeStyle.setAttribute("rel", "stylesheet"); - portalThemeStyle.setAttribute("type", "text/css"); - portalThemeStyle.setAttribute("href", '/yunohost/sso/assets/themes/'+ response.theme +'/css/ynhpanel.css'); - document.getElementsByTagName("head")[0].insertBefore(portalThemeStyle, null); - - // Bind YNH Button window.addEvent(portal, 'click', function(e){ // Prevent default click