input.setAttribute('id','newFileName');
form.addEvent('onsubmit',OC_FILES.browser.newFile);
var submit=document.createElement('input');
- form.appendChild(submit);
submit.type='submit';
+ form.appendChild(submit);
submit.value='Create';
OC_FILES.browser.moreActionsList=div;
}else{
}
OC_FILES.browser.showactions=function(file,hide){
- node=document.getElementById(file);
+ var node=document.getElementById(file);
if(node &&(node.actionsshown || hide===true)){
if(node.actionsdiv){
node.removeChild(node.actionsdiv);
table.appendChild(tbody);
var file=OC_FILES.files[file]
var actions=file.actions;
+ var name;
for(name in actions){
if(actions[name].call && name!='default' && name!='dropOn' && name!='drop'){
tr=document.createElement('tr');
// alert(tagName);
node=document.createElementNative(tagName);
var proto=new Node()
+ var name;
for(name in proto){
node[name]=proto[name];
}
function getStyle(x,styleProp)
{
if (x.currentStyle){
- alert(x.currentStyle);
var y = x.currentStyle[styleProp];
}else if (window.getComputedStyle){
var y = document.defaultView.getComputedStyle(x,null).getPropertyValue(styleProp);