aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorCesar G <prototech91@gmail.com>2014-11-11 17:30:34 -0800
committerCesar G <prototech91@gmail.com>2014-11-11 17:30:34 -0800
commit430c6aa32f72a58ae9b4c8d3b8a05c40b41f0413 (patch)
treec7432ba799e2af02d73baa693726293912e47614 /phpBB
parent101945acf98b7fb765a90288bc7dd403ee610dd5 (diff)
downloadforums-430c6aa32f72a58ae9b4c8d3b8a05c40b41f0413.tar
forums-430c6aa32f72a58ae9b4c8d3b8a05c40b41f0413.tar.gz
forums-430c6aa32f72a58ae9b4c8d3b8a05c40b41f0413.tar.bz2
forums-430c6aa32f72a58ae9b4c8d3b8a05c40b41f0413.tar.xz
forums-430c6aa32f72a58ae9b4c8d3b8a05c40b41f0413.zip
[ticket/13239] Ensure "Add files" button position is correctly calculated.
PHPBB3-13239
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/assets/javascript/plupload.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/phpBB/assets/javascript/plupload.js b/phpBB/assets/javascript/plupload.js
index 5445e83e15..a58c71e64d 100644
--- a/phpBB/assets/javascript/plupload.js
+++ b/phpBB/assets/javascript/plupload.js
@@ -34,6 +34,14 @@ phpbb.plupload.initialize = function() {
if (uploader.features.dragdrop) {
$('#drag-n-drop-message').show();
}
+
+ // Ensure "Add files" button position is correctly calculated.
+ if ($('#attach-panel-multi').is(':visible')) {
+ uploader.refresh();
+ }
+ $('[data-subpanel="attach-panel"]').one('click', function() {
+ uploader.refresh();
+ });
});
};