fix renaming files in IE

This commit is contained in:
Robin Appelman 2010-05-01 22:35:18 +02:00
parent accc1d7bf3
commit 567c17fde5
2 changed files with 3 additions and 3 deletions

View File

@ -476,8 +476,8 @@ OC_FILES.browser.rename_cancel=function(file){
OC_FILES.browser.showactions=function(file,hide){ OC_FILES.browser.showactions=function(file,hide){
var node=document.getElementById(file); var node=document.getElementById(file);
if(node &&(node.actionsshown || hide===true)){ if(node &&(node.actionsshown || hide===true)){
if(node.actionsdiv){ if(node.actionsshown){
node.removeChild(node.actionsdiv); node.actionsdiv.parentNode.removeChild(node.actionsdiv);
} }
node.actionsdiv=null; node.actionsdiv=null;
node.actionsshown=false node.actionsshown=false

View File

@ -88,7 +88,7 @@ OC_FILES.getdirectorycontent=function(dir,callback,refresh){
OC_FILES.dir=''; OC_FILES.dir='';
OC_FILES.get=function(dir,file){ OC_FILES.get=function(dir,file){
window.location='files/get_file.php?dir='+encodeURIComponent(dir)+'&files='+encodeURIComponent(file); window.location='files/api.php?action=get&dir='+encodeURIComponent(dir)+'&files='+encodeURIComponent(file);
} }
OC_FILES.upload=function(dir,iframeId){ OC_FILES.upload=function(dir,iframeId){