From 28228f58629828c9bcabd5cf6b99180f9fdc9d4a Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 7 Apr 2014 17:34:53 -0700 Subject: pass the original element title through the element stack so that it we don't lose it in the ajaxuploader. --- view/js/ajaxupload.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'view/js') 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, { -- cgit v1.2.3