From accc1d7bf31ec27524eea6a9028c4982f31ac1ac Mon Sep 17 00:00:00 2001
From: Robin Appelman <icewind1991@gmail>
Date: Fri, 30 Apr 2010 16:49:09 +0200
Subject: [PATCH] Fix a few things in IE

---
 js/filebrowser.js | 5 +++--
 js/lib_ajax.js    | 2 +-
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/js/filebrowser.js b/js/filebrowser.js
index cc03fe3315..548b7c8492 100755
--- a/js/filebrowser.js
+++ b/js/filebrowser.js
@@ -360,8 +360,8 @@ OC_FILES.browser.showMoreActions=function(){
 		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{
@@ -474,7 +474,7 @@ OC_FILES.browser.rename_cancel=function(file){
 }
 
 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);
@@ -492,6 +492,7 @@ OC_FILES.browser.showactions=function(file,hide){
         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');
diff --git a/js/lib_ajax.js b/js/lib_ajax.js
index 6a2ae53ee3..62899a9cd0 100755
--- a/js/lib_ajax.js
+++ b/js/lib_ajax.js
@@ -87,6 +87,7 @@ if(typeof Node=='undefined'){
 //         alert(tagName);
         node=document.createElementNative(tagName);
         var proto=new Node()
+        var name;
         for(name in proto){
             node[name]=proto[name];
         }
@@ -118,7 +119,6 @@ if(typeof Node=='undefined'){
 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);
-- 
GitLab