aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2019-08-12 22:33:24 +0200
committerMarc Alexander <admin@m-a-styles.de>2019-08-12 22:33:24 +0200
commitec306b0301ad457bd7163c297b8b895dc2c0ddb6 (patch)
tree23d1f91f1a2b9b2b9801be295867e5f5e73b5aa7
parent89e95941b1a4d082fa0c3202b175c3f827e09333 (diff)
downloadforums-ec306b0301ad457bd7163c297b8b895dc2c0ddb6.tar
forums-ec306b0301ad457bd7163c297b8b895dc2c0ddb6.tar.gz
forums-ec306b0301ad457bd7163c297b8b895dc2c0ddb6.tar.bz2
forums-ec306b0301ad457bd7163c297b8b895dc2c0ddb6.tar.xz
forums-ec306b0301ad457bd7163c297b8b895dc2c0ddb6.zip
[ticket/16093] Ensure attach row is visible after upload with javascript
PHPBB3-16093
-rw-r--r--phpBB/assets/javascript/plupload.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/phpBB/assets/javascript/plupload.js b/phpBB/assets/javascript/plupload.js
index 495d756c79..fab1ca6d7c 100644
--- a/phpBB/assets/javascript/plupload.js
+++ b/phpBB/assets/javascript/plupload.js
@@ -21,7 +21,9 @@ phpbb.plupload.initialize = function() {
// Only execute if Plupload initialized successfully.
phpbb.plupload.uploader.bind('Init', function() {
phpbb.plupload.form = $(phpbb.plupload.config.form_hook)[0];
- phpbb.plupload.rowTpl = $('#attach-row-tpl')[0].outerHTML;
+ let $attachRowTemplate = $('#attach-row-tpl');
+ $attachRowTemplate.removeClass('attach-row-tpl');
+ phpbb.plupload.rowTpl = $attachRowTemplate[0].outerHTML;
// Hide the basic upload panel and remove the attach row template.
$('#attach-row-tpl, #attach-panel-basic').remove();