Changeset 2019 for trunk/filemanager/js/draw_api.js
- Timestamp:
- 02/18/10 10:34:26 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/filemanager/js/draw_api.js
r2010 r2019 12 12 13 13 function loadHistory(filename){ 14 cExecute ('./index.php?menuaction=filemanager.uifilemanager.history&file='+base64_encode(filename)+"&path="+base64_encode(currentPath),draw_window);14 cExecute_('./index.php?menuaction=filemanager.uifilemanager.history&file='+base64_encode(filename)+"&path="+base64_encode(currentPath),draw_window); 15 15 } 16 16 … … 163 163 window.onresize = resizeDiv; 164 164 document.body.style.overflow = "hidden"; 165 cExecute ('./index.php?menuaction=filemanager.uifilemanager.get_folders_list',handler.draw_folders_list);165 cExecute_('./index.php?menuaction=filemanager.uifilemanager.get_folders_list',handler.draw_folders_list); 166 166 } 167 167 … … 483 483 inputName.value = filename; 484 484 inputName.onclick = function () { oldValue = inputName.value; } 485 inputName.onblur = function () { if (inputName.value == oldValue) handler.rename(); else cExecute ('./index.php?menuaction=filemanager.vfs_functions.rename&file='+base64_encode(this.id.substr(6))+'&to='+base64_encode(this.value)+"&path="+base64_encode(currentPath),handler.rename) };485 inputName.onblur = function () { if (inputName.value == oldValue) handler.rename(); else cExecute_('./index.php?menuaction=filemanager.vfs_functions.rename&file='+base64_encode(this.id.substr(6))+'&to='+base64_encode(this.value)+"&path="+base64_encode(currentPath),handler.rename) }; 486 486 inputName.onkeydown=function (event) {if (event.keyCode == KEY_ENTER) this.blur(); }; 487 487 nameLink.parentNode.appendChild(inputName); … … 512 512 case 'delete': 513 513 var filesUrl = this.getCheckedFiles(); 514 cExecute ('./index.php?menuaction=filemanager.vfs_functions.delete&path='+514 cExecute_('./index.php?menuaction=filemanager.vfs_functions.delete&path='+ 515 515 base64_encode(currentPath)+filesUrl,handler.del); 516 516 break; … … 530 530 } 531 531 var pswd = crypt.encode(password); 532 cExecute ('./index.php?menuaction=filemanager.vfs_functions.archive&pswd='+base64_encode(pswd.toString())+'&path='+base64_encode(currentPath)+filesUrl,handler.archive);532 cExecute_('./index.php?menuaction=filemanager.vfs_functions.archive&pswd='+base64_encode(pswd.toString())+'&path='+base64_encode(currentPath)+filesUrl,handler.archive); 533 533 break; 534 534 case 'move_to': … … 549 549 last_folder = last_folder ? last_folder : currentPath; 550 550 current_folder = current_folder ? current_folder : currentPath; 551 cExecute ('./index.php?menuaction=filemanager.uifilemanager.dir_ls&path='+base64_encode(currentPath)+'&criteria='+criteria+'&otype='+order_type+'&limit='+preferences.files_per_page+'&offset='+offset,folderList.drawFiles);551 cExecute_('./index.php?menuaction=filemanager.uifilemanager.dir_ls&path='+base64_encode(currentPath)+'&criteria='+criteria+'&otype='+order_type+'&limit='+preferences.files_per_page+'&offset='+offset,folderList.drawFiles); 552 552 return; 553 553 case 'tools': … … 584 584 if (password == null) 585 585 return; 586 cExecute ('./index.php?menuaction=filemanager.vfs_functions.unarchive&pswd='+base64_encode(password)+'&path='+base64_encode(currentPath)+'&file='+base64_encode(filename),handler.archive);586 cExecute_('./index.php?menuaction=filemanager.vfs_functions.unarchive&pswd='+base64_encode(password)+'&path='+base64_encode(currentPath)+'&file='+base64_encode(filename),handler.archive); 587 587 } 588 588 function move_to(to,filesUrl){ 589 cExecute ('./index.php?menuaction=filemanager.vfs_functions.moveto&from='+base64_encode(currentPath)+'&to='+base64_encode(to)+filesUrl,handler.moveto);589 cExecute_('./index.php?menuaction=filemanager.vfs_functions.moveto&from='+base64_encode(currentPath)+'&to='+base64_encode(to)+filesUrl,handler.moveto); 590 590 } 591 591 function copy_to(to,filesUrl){ 592 cExecute ('./index.php?menuaction=filemanager.vfs_functions.copyto&from='+base64_encode(currentPath)+'&to='+base64_encode(to)+filesUrl,handler.copyto);592 cExecute_('./index.php?menuaction=filemanager.vfs_functions.copyto&from='+base64_encode(currentPath)+'&to='+base64_encode(to)+filesUrl,handler.copyto); 593 593 } 594 594 … … 603 603 case 'user': 604 604 var url = './index.php?menuaction=filemanager.user.card&lid='+base64_encode(name); 605 menuTimeout = setTimeout("cExecute ('"+url+"',draw_window_card)",500);605 menuTimeout = setTimeout("cExecute_('"+url+"',draw_window_card)",500); 606 606 break; 607 607 default: … … 616 616 { 617 617 var parentDir = document.getElementById('folders_box').value; 618 cExecute ('./index.php?menuaction=filemanager.uifilemanager.createdir&path='+base64_encode(parentDir)+'&filename='+base64_encode(name),handler.refreshDir);618 cExecute_('./index.php?menuaction=filemanager.uifilemanager.createdir&path='+base64_encode(parentDir)+'&filename='+base64_encode(name),handler.refreshDir); 619 619 currentPath = parentDir+'/'+name; 620 620 close_window(); … … 626 626 if (confirm(get_lang('Do you really want to remove folder: %1?',Dfolder), '')) 627 627 { 628 cExecute ('./index.php?menuaction=filemanager.uifilemanager.removedir&path='+base64_encode(crypt.encode(Dfolder)),handler.refreshDir);628 cExecute_('./index.php?menuaction=filemanager.uifilemanager.removedir&path='+base64_encode(crypt.encode(Dfolder)),handler.refreshDir); 629 629 var lastIndex = Dfolder.lastIndexOf('/'); 630 630 currentPath = Dfolder.substr(0,lastIndex);
Note: See TracChangeset
for help on using the changeset viewer.