Commit edf5f032856d2d8f8fcbe93b4b215fb2d157eceb

Authored by kevin_fourie
1 parent 5c14fe82

Merged in from DEV trunk...

KTS-3431
"Disk Usage stats should be a background task and cached"
Implemented.

KTS-3432
"Storage Usage status should be retrieved in a background task and cached"
Implemented.

Committed By: Conrad Vermeulen
Reviewed By: Megan Watson


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/branches/3.5.3-Branch@8608 c91229c3-7414-0410-bfa2-8a42b809f60b
plugins/ktstandard/AdminVersionPlugin/js/update.js deleted
1   -var currloc = location.pathname.substring(0,location.pathname.lastIndexOf('/')+1);
2   -var user = '';
3   -
4   -function CheckVersion(){
5   - xmlHttpAdmin=GetXmlHttpAdminObject();
6   - if (xmlHttpAdmin===null){
7   - alert ("Browser does not support HTTP Request");
8   - return;
9   - }
10   - var url=VERSIONS_URL;
11   -
12   - xmlHttpAdmin.onreadystatechange=adminStateChanged;
13   - xmlHttpAdmin.open("GET",url,true);
14   - xmlHttpAdmin.send(null);
15   -
16   -}
17   -
18   -function adminStateChanged(){
19   - if (xmlHttpAdmin.readyState==4 || xmlHttpAdmin.readyState=="complete"){
20   - if(xmlHttpAdmin.responseText != ""){
21   - document.getElementById("AdminVersionDashlet").style.display = "block";
22   - document.getElementById("AdminVersionBlock").innerHTML=xmlHttpAdmin.responseText;
23   - }
24   - }else{
25   - //dashlet not shown until new version is returned so this print isn't needed
26   - //document.getElementById("AdminVersionBlock").innerHTML="Checking Versions";
27   - }
28   -}
29   -
30   -function GetXmlHttpAdminObject(){
31   - var objXMLHttpAdmin=null;
32   - if (window.XMLHttpRequest){
33   - objXMLHttpAdmin=new XMLHttpRequest();
34   - }else if (window.ActiveXObject){
35   - objXMLHttpAdmin=new ActiveXObject("Microsoft.XMLHTTP");
36   - }
37   - return objXMLHttpAdmin;
38   -}
39 0 \ No newline at end of file