]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix renaming files in IE
authorRobin Appelman <icewind1991@gmail>
Sat, 1 May 2010 20:35:18 +0000 (22:35 +0200)
committerRobin Appelman <icewind1991@gmail>
Sat, 1 May 2010 20:35:18 +0000 (22:35 +0200)
js/filebrowser.js
js/lib_files.js

index 548b7c8492247726deeacc1d0d40706ef3c92c6b..18567f202c592152ec986efbc4bfbcbb71b6ddbd 100755 (executable)
@@ -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
index d1480e36637ab232b9e8097c8f14fb41db568eda..c66fc8d12159bc6eadd285ddf14040db46b5e812 100755 (executable)
@@ -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){