aboutsummaryrefslogtreecommitdiffstats
path: root/addon/js_upload/js_upload.php
diff options
context:
space:
mode:
authorfabrixxm <fabrix.xm@gmail.com>2011-02-03 07:24:58 +0100
committerfabrixxm <fabrix.xm@gmail.com>2011-02-03 07:24:58 +0100
commit97bb80c00f4106d63d730f6bcaebf9e4aa247c01 (patch)
tree43bfb9aa3f85c3b7c2ec19ad72fece95f745ce4d /addon/js_upload/js_upload.php
parenta3fd84661f74b0759f9edad1f068b32820b03c5d (diff)
parent0a32370e32b068073010d1d6b33241867c3be4d7 (diff)
downloadvolse-hubzilla-97bb80c00f4106d63d730f6bcaebf9e4aa247c01.tar.gz
volse-hubzilla-97bb80c00f4106d63d730f6bcaebf9e4aa247c01.tar.bz2
volse-hubzilla-97bb80c00f4106d63d730f6bcaebf9e4aa247c01.zip
Merge branch 'friendika-master'
Diffstat (limited to 'addon/js_upload/js_upload.php')
-rw-r--r--addon/js_upload/js_upload.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/addon/js_upload/js_upload.php b/addon/js_upload/js_upload.php
index dc2dc37dc..9f3fa9600 100644
--- a/addon/js_upload/js_upload.php
+++ b/addon/js_upload/js_upload.php
@@ -36,6 +36,11 @@ function js_upload_form(&$a,&$b) {
$b['addon_text'] .= '<link href="' . $a->get_baseurl() . '/addon/js_upload/file-uploader/client/fileuploader.css" rel="stylesheet" type="text/css">';
$b['addon_text'] .= '<script src="' . $a->get_baseurl() . '/addon/js_upload/file-uploader/client/fileuploader.js" type="text/javascript"></script>';
+ $upload_msg = t('Upload a file');
+ $drop_msg = t('Drop files here to upload');
+ $cancel = t('Cancel');
+ $failed = t('Failed');
+
$b['addon_text'] .= <<< EOT
<div id="file-uploader-demo1">
@@ -65,6 +70,22 @@ function createUploader() {
uploader = new qq.FileUploader({
element: document.getElementById('file-uploader-demo1'),
action: '{$b['post_url']}',
+
+ template: '<div class="qq-uploader">' +
+ '<div class="qq-upload-drop-area"><span>$drop_msg</span></div>' +
+ '<div class="qq-upload-button">$upload_msg</div>' +
+ '<ul class="qq-upload-list"></ul>' +
+ '</div>',
+
+ // template for one item in file list
+ fileTemplate: '<li>' +
+ '<span class="qq-upload-file"></span>' +
+ '<span class="qq-upload-spinner"></span>' +
+ '<span class="qq-upload-size"></span>' +
+ '<a class="qq-upload-cancel" href="#">$cancel</a>' +
+ '<span class="qq-upload-failed-text">$failed</span>' +
+ '</li>',
+
debug: true,
onSubmit: function(id,filename) {