From edf5f032856d2d8f8fcbe93b4b215fb2d157eceb Mon Sep 17 00:00:00 2001 From: kevin_fourie Date: Wed, 11 Jun 2008 11:14:40 +0000 Subject: [PATCH] Merged in from DEV trunk... --- plugins/ktstandard/AdminVersionPlugin/js/update.js | 38 -------------------------------------- 1 file changed, 0 insertions(+), 38 deletions(-) delete mode 100644 plugins/ktstandard/AdminVersionPlugin/js/update.js diff --git a/plugins/ktstandard/AdminVersionPlugin/js/update.js b/plugins/ktstandard/AdminVersionPlugin/js/update.js deleted file mode 100644 index d1daf0e..0000000 --- a/plugins/ktstandard/AdminVersionPlugin/js/update.js +++ /dev/null @@ -1,38 +0,0 @@ -var currloc = location.pathname.substring(0,location.pathname.lastIndexOf('/')+1); -var user = ''; - -function CheckVersion(){ - xmlHttpAdmin=GetXmlHttpAdminObject(); - if (xmlHttpAdmin===null){ - alert ("Browser does not support HTTP Request"); - return; - } - var url=VERSIONS_URL; - - xmlHttpAdmin.onreadystatechange=adminStateChanged; - xmlHttpAdmin.open("GET",url,true); - xmlHttpAdmin.send(null); - -} - -function adminStateChanged(){ - if (xmlHttpAdmin.readyState==4 || xmlHttpAdmin.readyState=="complete"){ - if(xmlHttpAdmin.responseText != ""){ - document.getElementById("AdminVersionDashlet").style.display = "block"; - document.getElementById("AdminVersionBlock").innerHTML=xmlHttpAdmin.responseText; - } - }else{ - //dashlet not shown until new version is returned so this print isn't needed - //document.getElementById("AdminVersionBlock").innerHTML="Checking Versions"; - } -} - -function GetXmlHttpAdminObject(){ - var objXMLHttpAdmin=null; - if (window.XMLHttpRequest){ - objXMLHttpAdmin=new XMLHttpRequest(); - }else if (window.ActiveXObject){ - objXMLHttpAdmin=new ActiveXObject("Microsoft.XMLHTTP"); - } - return objXMLHttpAdmin; -} \ No newline at end of file -- libgit2 0.21.4