aboutsummaryrefslogtreecommitdiffstats
path: root/view/js/ajaxupload.js
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-04-07 17:34:53 -0700
committerfriendica <info@friendica.com>2014-04-07 17:34:53 -0700
commit28228f58629828c9bcabd5cf6b99180f9fdc9d4a (patch)
treede4d4ef0b63794108f12393dba24b912e9ab0899 /view/js/ajaxupload.js
parent03753f463e05c965a460e64efca9478efc0271c1 (diff)
downloadvolse-hubzilla-28228f58629828c9bcabd5cf6b99180f9fdc9d4a.tar.gz
volse-hubzilla-28228f58629828c9bcabd5cf6b99180f9fdc9d4a.tar.bz2
volse-hubzilla-28228f58629828c9bcabd5cf6b99180f9fdc9d4a.zip
pass the original element title through the element stack so that it we don't lose it in the ajaxuploader.
Diffstat (limited to 'view/js/ajaxupload.js')
-rw-r--r--view/js/ajaxupload.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/view/js/ajaxupload.js b/view/js/ajaxupload.js
index 5719f30e0..c7d587dd1 100644
--- a/view/js/ajaxupload.js
+++ b/view/js/ajaxupload.js
@@ -264,6 +264,9 @@
action: 'upload.php',
// File upload name
name: 'userfile',
+
+ title: 'Upload',
+
// Additional data to send
data: {},
// Submit file as soon as it's selected
@@ -380,6 +383,7 @@
var input = document.createElement("input");
input.setAttribute('type', 'file');
+ input.setAttribute('title',this._settings.title);
input.setAttribute('name', this._settings.name);
addStyles(input, {