summaryrefslogtreecommitdiffstats
path: root/files
diff options
context:
space:
mode:
authorBartek Przybylski <bart.p.pl@gmail.com>2011-08-10 20:12:42 +0200
committerBartek Przybylski <bart.p.pl@gmail.com>2011-08-10 20:12:42 +0200
commitec31a29b3c0add4ab4adf1ba089282b7024b1eb1 (patch)
tree515fcf7a5b16dcf7f299dcd21d03f0cdbd2cd890 /files
parentfbf86c6683da91c8cadad128e5ac7c0742aaffed (diff)
downloadnextcloud-server-ec31a29b3c0add4ab4adf1ba089282b7024b1eb1.tar.gz
nextcloud-server-ec31a29b3c0add4ab4adf1ba089282b7024b1eb1.zip
Bug 279826 fix
Diffstat (limited to 'files')
-rw-r--r--files/css/files.css4
-rw-r--r--files/templates/index.php29
2 files changed, 19 insertions, 14 deletions
diff --git a/files/css/files.css b/files/css/files.css
index 0ec1698bf3a..004721cff9a 100644
--- a/files/css/files.css
+++ b/files/css/files.css
@@ -1,9 +1,11 @@
/* FILE MENU */
.actions { padding:.6em; float:right; margin-right:13em; }
.actions input { margin:0; padding:.3em; }
+.actions div { position: relative; display:inline-block; }
#file_menu { right:0; position:absolute; top:0; }
#file_menu a { display:block; float:left; background-image:none; text-decoration:none; }
-.file_upload_form, #file_newfolder_form { display:inline; }
+.file_upload_form { display: inline; z-index: 5;}
+#file_newfolder_form { display:inline; z-index: 6;}
#fileSelector, #file_upload_submit, #file_newfolder_submit { display:none; }
.file_upload_wrapper, #file_newfolder_name { background-repeat:no-repeat; background-position:.5em .3em; padding-left:2em; }
.file_upload_wrapper { background:url("../img/file.png"); font-weight:bold; position:relative; top:-1.2em; left:-2em; display:-moz-inline-box; /* fallback for older firefox versions*/ display:inline-block; width:8em; }
diff --git a/files/templates/index.php b/files/templates/index.php
index 3951787a25d..d9a6c2b4b80 100644
--- a/files/templates/index.php
+++ b/files/templates/index.php
@@ -1,19 +1,22 @@
<div id="controls">
<?php echo($_['breadcrumb']); ?>
<div class="actions">
- <form data-upload-id='1' class="file_upload_form" action="ajax/upload.php" method="post" enctype="multipart/form-data" target="file_upload_target_1">
- <input type="hidden" name="MAX_FILE_SIZE" value="<?php echo $_['uploadMaxFilesize'] ?>" id="max_upload">
- <input type="hidden" class="max_human_file_size" value="(max <?php echo $_['uploadMaxHumanFilesize']; ?>)">
- <input type="hidden" name="dir" value="<?php echo $_['dir'] ?>" id="dir">
- <div class="file_upload_wrapper">
- <input type="submit" class="file_upload_filename" value="<?php echo $l->t('Upload');?> (max. <?php echo $_['uploadMaxHumanFilesize'];?>)"/>
- <input class="file_upload_start" type="file" name='files[]'/>
- </div>
- <iframe name="file_upload_target_1" class='file_upload_target' src=""></iframe>
- </form>
- <form id="file_newfolder_form">
- <input type="text" name="file_newfolder_name" id="file_newfolder_name" value="" placeholder="<?php echo $l->t('New Folder')?>" />
- </form>
+ <div syle="z-index:4;">
+ <form data-upload-id='1' class="file_upload_form" action="ajax/upload.php" method="post" enctype="multipart/form-data" target="file_upload_target_1">
+ <input type="hidden" name="MAX_FILE_SIZE" value="<?php echo $_['uploadMaxFilesize'] ?>" id="max_upload">
+ <input type="hidden" class="max_human_file_size" value="(max <?php echo $_['uploadMaxHumanFilesize']; ?>)">
+ <input type="hidden" name="dir" value="<?php echo $_['dir'] ?>" id="dir">
+ <div class="file_upload_wrapper">
+ <input type="submit" class="file_upload_filename" value="<?php echo $l->t('Upload');?> (max. <?php echo $_['uploadMaxHumanFilesize'];?>)"/>
+ <input class="file_upload_start" type="file" name='files[]'/>
+ </div>
+ <iframe name="file_upload_target_1" class='file_upload_target' src=""></iframe>
+ </form>
+ </div><div style="z-index:5;">
+ <form id="file_newfolder_form">
+ <input type="text" name="file_newfolder_name" id="file_newfolder_name" value="" placeholder="<?php echo $l->t('New Folder')?>" />
+ </form>
+ </div>
</div>
<div id="file_action_panel">
</div>