diff options
author | Robin Appelman <icewind1991@gmail> | 2010-05-01 22:35:18 +0200 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail> | 2010-05-01 22:35:18 +0200 |
commit | 567c17fde595ae47c6e281bcdad56d3723c642e6 (patch) | |
tree | bd756ec5c56d3274fcce32f85b8536888ee26d22 /js | |
parent | accc1d7bf31ec27524eea6a9028c4982f31ac1ac (diff) | |
download | nextcloud-server-567c17fde595ae47c6e281bcdad56d3723c642e6.tar.gz nextcloud-server-567c17fde595ae47c6e281bcdad56d3723c642e6.zip |
fix renaming files in IE
Diffstat (limited to 'js')
-rwxr-xr-x | js/filebrowser.js | 4 | ||||
-rwxr-xr-x | js/lib_files.js | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/js/filebrowser.js b/js/filebrowser.js index 548b7c84922..18567f202c5 100755 --- a/js/filebrowser.js +++ b/js/filebrowser.js @@ -476,8 +476,8 @@ OC_FILES.browser.rename_cancel=function(file){ OC_FILES.browser.showactions=function(file,hide){ var node=document.getElementById(file); if(node &&(node.actionsshown || hide===true)){ - if(node.actionsdiv){ - node.removeChild(node.actionsdiv); + if(node.actionsshown){ + node.actionsdiv.parentNode.removeChild(node.actionsdiv); } node.actionsdiv=null; node.actionsshown=false diff --git a/js/lib_files.js b/js/lib_files.js index d1480e36637..c66fc8d1215 100755 --- a/js/lib_files.js +++ b/js/lib_files.js @@ -88,7 +88,7 @@ OC_FILES.getdirectorycontent=function(dir,callback,refresh){ OC_FILES.dir=''; 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){ |