mirror of
https://github.com/YunoHost/SSOwat.git
synced 2024-09-03 20:06:27 +02:00
We don't need this?
This commit is contained in:
parent
5478ea7bcf
commit
140eb042d9
2 changed files with 0 additions and 20 deletions
|
@ -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) {
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue