]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix a few things in IE
authorRobin Appelman <icewind1991@gmail>
Fri, 30 Apr 2010 14:49:09 +0000 (16:49 +0200)
committerRobin Appelman <icewind1991@gmail>
Fri, 30 Apr 2010 14:49:09 +0000 (16:49 +0200)
js/filebrowser.js
js/lib_ajax.js

index cc03fe33156aae3e6332e1405fcfdfdc2f25b2ce..548b7c8492247726deeacc1d0d40706ef3c92c6b 100755 (executable)
@@ -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');
index 6a2ae53ee320daa64654097063c8b403a9005035..62899a9cd06049df5df3522b15add0c56141a814 100755 (executable)
@@ -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);