summaryrefslogtreecommitdiffstats
path: root/files
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2011-04-19 08:05:08 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2011-04-19 08:05:08 +0200
commit07c6c7f4fac4323122daf05f63ccf9152a709afb (patch)
tree1296b42f34dccef173df2008cdcb83d6ad501e0b /files
parent4a9fdd2918c3828b4c60e22eda4dc89a9228bc8e (diff)
downloadnextcloud-server-07c6c7f4fac4323122daf05f63ccf9152a709afb.tar.gz
nextcloud-server-07c6c7f4fac4323122daf05f63ccf9152a709afb.zip
upload works in a not so fancy way for konqueror and rekonq
Diffstat (limited to 'files')
-rw-r--r--files/js/files.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/files/js/files.js b/files/js/files.js
index c0905f4af9d..3ab09251f6f 100644
--- a/files/js/files.js
+++ b/files/js/files.js
@@ -74,8 +74,6 @@ $(document).ready(function() {
$('#file_upload_start').click(function() {
if($('#file_upload_start').attr('mode') == 'menu') {
$('#fileSelector').change(function() {
-// alert("foo");
-
//Chromium prepends C:\fakepath....
bspos = $('#fileSelector').val().lastIndexOf('\\')+1;
filename = $('#fileSelector').val().substr(bspos);
@@ -86,7 +84,10 @@ $(document).ready(function() {
$('#file_upload_start').attr('mode', 'action');
});
$('#fileSelector').show(); //needed for Chromium compatibility
- $('#fileSelector').click();
+ //rekonq does not call change-event, when click() is executed by script
+ if(navigator.userAgent.indexOf('rekonq') == -1){
+ $('#fileSelector').click();
+ }
} else if($('#file_upload_start').attr('mode') == 'action') {
$('#file_upload_cancel').slideUp(250);
$('#file_upload_target').load(uploadFinished);