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
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){