Commit eb8f7110 authored by haemmer's avatar haemmer
Browse files

Ensure that the improved drop down is not loaded twice

parent 266a57d3
......@@ -563,16 +563,20 @@ function loadJQuery() {
var head = document.getElementsByTagName('head')[0];
var script = document.createElement('script');
var improvedDropDownLoaded = false;
script.src = '<?php echo $javascriptURL ?>/jquery.js';
script.type = 'text/javascript';
script.onload = function() {
loadImprovedDropDown();
improvedDropDownLoaded = true;
};
head.appendChild(script);
// Fix for IE Browsers
ieLoadBugFix(script, function(){
loadImprovedDropDown();
if (!improvedDropDownLoaded){
loadImprovedDropDown();
}
});
}
......
Supports Markdown
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