Changeset 1654 for sandbox/filemanager/js/draw_api.js
- Timestamp:
- 11/17/09 09:02:41 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/filemanager/js/draw_api.js
r1627 r1654 1 document.getElementById('divAppboxHeader').innerHTML = title_app; 1 function initDrawApi(){ 2 document.getElementById('divAppboxHeader').innerHTML = title_app; 2 3 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; 5 7 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 } 8 12 var headerMsgLock = false; 9 13 var labelBefore = ""; … … 41 45 } 42 46 } 43 setTimeout('displayMessages();',500); 47
Note: See TracChangeset
for help on using the changeset viewer.