Ignore:
Timestamp:
12/07/09 16:31:45 (14 years ago)
Author:
amuller
Message:

Ticket #597 - Melhorias no módulos gerenciador de arquivos do expresso livre

File:
1 edited

Legend:

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

    r1784 r1785  
    3030        toolbar.load(); 
    3131        loadPreferences(); 
    32         toolbar.control('reload'); 
    3332} 
    3433function close_window(){ 
     
    146145function initDrawApi(){ 
    147146        currentPath = document.getElementById('currentPath').value; 
    148         cExecute('./index.php?menuaction=filemanager.uifilemanager.get_permissions&path='+base64_encode(currentPath),loadPermissions); 
    149         quotaSize = document.getElementById('quotaSize').value; 
    150         usedSpace = document.getElementById('usedSpace').value; 
    151  
     147        toolbar.control('reload'); 
    152148        document.getElementById('divAppboxHeader').innerHTML = title_app; 
    153  
    154         if (parseInt(quotaSize) != 0) 
    155                 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>'; 
    156149        displayMessages(); 
    157150        resizeDiv(); 
     
    282275                return retBuff; 
    283276} 
     277folderList.prototype.updateQuota = function(quotaSize,usedSpace){ 
     278        if (parseInt(quotaSize) != 0) 
     279                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)+'% ('+borkb(usedSpace)+'/'+borkb(quotaSize)+')</span></td></tr></tbody></table></td></tr></table>'; 
     280} 
    284281folderList.prototype.drawFiles = function(data){ 
    285282        var fl = folderList; 
    286         var files = unserialize(data); 
     283        var returnData = unserialize(data); 
     284        loadPermissions(returnData.permissions); 
     285        var files = returnData.files; 
    287286        fl.init(); 
    288287        fl.clear(); 
     
    334333        } 
    335334        fl.drawStripes(); 
     335        folderList.updateQuota(returnData.quota.quotaSize,returnData.quota.usedSpace); 
    336336} 
    337337folderList.prototype.drawStripes = function(){ 
Note: See TracChangeset for help on using the changeset viewer.