Commit 3b821a0a authored by Geoffroy ARNOUD's avatar Geoffroy ARNOUD

Added $apiURL param

Changed when select2Functions.js is loaded
#K69
parent c62d57a1
...@@ -244,7 +244,8 @@ ...@@ -244,7 +244,8 @@
// the WAYF script. // the WAYF script.
//$javascriptURL = 'https://ds.example.org/SWITCHwayf/js'; //$javascriptURL = 'https://ds.example.org/SWITCHwayf/js';
// Abolute URL to point to APIs
//$apiURL = 'https://ds.example.org/SWITCHwayf/api';
// 5. Appearance Settings // 5. Appearance Settings
//************************** //**************************
......
...@@ -672,12 +672,6 @@ ...@@ -672,12 +672,6 @@
var head = document.getElementsByTagName('head')[0]; var head = document.getElementsByTagName('head')[0];
var select2Loaded = false; var select2Loaded = false;
var select2Functions = document.createElement('script');
select2Functions.src = "<?php echo $javascriptURL ?>/select2Functions.js";
select2Functions.type = 'text/javascript';
head.appendChild(select2Functions);
var script = document.createElement('script'); var script = document.createElement('script');
script.src = '<?php echo $javascriptURL ?>/jquery.js'; script.src = '<?php echo $javascriptURL ?>/jquery.js';
script.type = 'text/javascript'; script.type = 'text/javascript';
...@@ -710,6 +704,12 @@ ...@@ -710,6 +704,12 @@
// Load Select2 JS // Load Select2 JS
var head = document.getElementsByTagName('head')[0]; var head = document.getElementsByTagName('head')[0];
var select2Functions = document.createElement('script');
select2Functions.src = "<?php echo $javascriptURL ?>/select2Functions.js";
select2Functions.type = 'text/javascript';
head.appendChild(select2Functions);
var select2Script = document.createElement('script'); var select2Script = document.createElement('script');
select2Script.src = "<?php echo($javascriptURL .'/select2.min.js') ?>"; select2Script.src = "<?php echo($javascriptURL .'/select2.min.js') ?>";
select2Script.type = 'text/javascript'; select2Script.type = 'text/javascript';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment