We don't need this?

This commit is contained in:
Alexandre Aubin 2019-02-21 19:21:44 +01:00
parent 5478ea7bcf
commit 140eb042d9
2 changed files with 0 additions and 20 deletions

View file

@ -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 // handle app links so they work both in plain info page and in the info iframe called from ynhpanel.js
function appClick (evnt, url) { function appClick (evnt, url) {

View file

@ -261,14 +261,6 @@ domReady(function(){
portalStyle.setAttribute("href", '/ynhpanel.css'); portalStyle.setAttribute("href", '/ynhpanel.css');
document.getElementsByTagName("head")[0].insertBefore(portalStyle, null); 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 // Bind YNH Button
window.addEvent(portal, 'click', function(e){ window.addEvent(portal, 'click', function(e){
// Prevent default click // Prevent default click