Changeset 4981 for branches/2.2/filemanager/js/draw_api.js
- Timestamp:
- 08/23/11 16:44:39 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/filemanager/js/draw_api.js
r4915 r4981 407 407 } 408 408 folderList.prototype.updateQuota = function(quotaSize,usedSpace){ 409 if (parseInt(quotaSize) != 0){ 409 if ( parseInt(quotaSize) != 0 ) 410 { 410 411 var contentQuota = document.getElementById('content_quota'); 411 if (contentQuota != null) 412 contentQuota.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>'; 412 413 if ( contentQuota != null ) 414 { 415 contentQuota.innerHTML = '<table width="102" cellspacing="0" cellpadding="0" border="0" id="table_quota">' + 416 '<tbody><tr>' + 417 '<td width="102" nowrap="true" height="15" background="./phpgwapi/templates/default/images/dsunused.gif">' + 418 '<table cellspacing="0" cellpadding="0" border="0" style="width: '+parseInt((usedSpace/quotaSize)*100)+'%;">' + 419 '<tbody><tr><td height="15" class="dsused"/></tr></tbody></table>'+ 420 '</td><td nowrap="true" align="center"><span class="boxHeaderText"> '+ 421 parseInt(usedSpace/quotaSize*100)+'% ('+borkb(usedSpace)+'/'+borkb(quotaSize)+')</span>'+ 422 '</td></tr></tbody></table></td></tr></table>'; 423 } 413 424 } 414 425 } … … 526 537 527 538 } 528 toolbar.prototype.getCheckedFiles = function () { 539 540 toolbar.prototype.getCheckedFiles = function() 541 { 529 542 filesUrl = ""; 530 543 var one_checked = false; 531 files=document.getElementsByName('fileman');544 var files = document.getElementsByName('fileman'); 532 545 var j=0; 546 533 547 for (i = 0; i < files.length; i++) 534 if (files[i].checked){ 548 { 549 if (files[i].checked) 550 { 535 551 one_checked = true; 536 552 filesUrl += "&fileman["+j+"]="+base64_encode(files[i].value); 537 553 j++; 538 554 } 555 } 556 539 557 if (!one_checked) 540 558 { … … 542 560 return; 543 561 } 562 544 563 return filesUrl; 545 564 } … … 776 795 { 777 796 clearTimeout(menuTimeout); 778 switch(type){779 case 'preview':780 var url = './index.php?menuaction=filemanager.vfs_functions.summary&file='+base64_encode(name)+"&path="+base64_encode(currentPath);781 var htmlData = '<img src=\"'+url+'\">';782 menuTimeout = setTimeout("draw_window_card(\'"+htmlData+"\')",500);783 break;784 case 'user':785 var url = './index.php?menuaction=filemanager.user.card&lid='+base64_encode(name);786 menuTimeout = setTimeout("cExecute_('"+url+"',draw_window_card)",500);787 break;788 default:789 break;797 798 if( type == "preview" ) 799 { 800 var url = './index.php?menuaction=filemanager.vfs_functions.summary&file='+base64_encode(name)+"&path="+base64_encode(currentPath); 801 var htmlData = '<img src=\"'+url+'\">'; 802 menuTimeout = setTimeout( "draw_window_card(\'"+htmlData+"\')", 300 ); 803 } 804 805 if( type == "user") 806 { 807 var url = './index.php?menuaction=filemanager.user.card&lid='+base64_encode(name); 808 menuTimeout = setTimeout("cExecute_('"+url+"',draw_window_card)", 300 ); 790 809 } 791 810 … … 912 931 } 913 932 menu.innerHTML = content; 914 915 933 menu.style.visibility = 'visible'; 916 clearTimeout(menuTimeout); 917 menuTimeout = setTimeout("hide_card()",4000); 934 935 if( menuTimeout ) 936 clearTimeout(menuTimeout); 937 menuTimeout = setTimeout("hide_card()",1000); 918 938 } 919 939 function hide_card()
Note: See TracChangeset
for help on using the changeset viewer.