Ignore:
Timestamp:
11/17/09 09:02:41 (14 years ago)
Author:
amuller
Message:

Ticket #597 - melhoria no modulo gerenciador de arquivos

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/filemanager/js/draw_api.js

    r1627 r1654  
    1 document.getElementById('divAppboxHeader').innerHTML = title_app; 
     1function initDrawApi(){ 
     2        document.getElementById('divAppboxHeader').innerHTML = title_app; 
    23 
    3 var quotaSize = document.getElementById('quotaSize').value; 
    4 var usedSpace = document.getElementById('usedSpace').value; 
     4        var quotaSize = document.getElementById('quotaSize').value; 
     5        var usedSpace = document.getElementById('usedSpace').value; 
     6        var currentPath = document.getElementById('currentPath').value; 
    57 
    6 document.getElementById('content_quota').innerHTML = '<table width="102" cellspacing="0" cellpadding="0" border="0" id="table_quota"><tbody><tr><td width="102" nowrap="true" height="15" background="../phpgwapi/templates/default/images/dsunused.gif"><table cellspacing="0" cellpadding="0" border="0" style="width: '+parseInt((usedSpace/quotaSize)*100)+'%;"><tbody><tr><td height="15" class="dsused"/></tr></tbody></table></td><td nowrap="true" align="center"><span class="boxHeaderText">'+parseInt(usedSpace/quotaSize*100)+'% ('+(usedSpace/1024/1024).toFixed(1)+'M/'+(quotaSize/1024/1024)+'M)</span></td></tr></tbody></table></td></tr></table>' 
    7  
     8        if (parseInt(quotaSize) != 0) 
     9                document.getElementById('content_quota').innerHTML = '<table width="102" cellspacing="0" cellpadding="0" border="0" id="table_quota"><tbody><tr><td width="102" nowrap="true" height="15" background="../phpgwapi/templates/default/images/dsunused.gif"><table cellspacing="0" cellpadding="0" border="0" style="width: '+parseInt((usedSpace/quotaSize)*100)+'%;"><tbody><tr><td height="15" class="dsused"/></tr></tbody></table></td><td nowrap="true" align="center"><span class="boxHeaderText">'+parseInt(usedSpace/quotaSize*100)+'% ('+(usedSpace/1024/1024).toFixed(1)+'M/'+(quotaSize/1024/1024)+'M)</span></td></tr></tbody></table></td></tr></table>'; 
     10        setTimeout('displayMessages();',500); 
     11} 
    812var headerMsgLock = false; 
    913var labelBefore = ""; 
     
    4145        } 
    4246} 
    43 setTimeout('displayMessages();',500); 
     47 
Note: See TracChangeset for help on using the changeset viewer.