diff options
author | Cesar G <prototech91@gmail.com> | 2014-11-11 17:30:34 -0800 |
---|---|---|
committer | Cesar G <prototech91@gmail.com> | 2014-11-11 17:30:34 -0800 |
commit | 430c6aa32f72a58ae9b4c8d3b8a05c40b41f0413 (patch) | |
tree | c7432ba799e2af02d73baa693726293912e47614 /phpBB/assets/javascript | |
parent | 101945acf98b7fb765a90288bc7dd403ee610dd5 (diff) | |
download | forums-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/assets/javascript')
-rw-r--r-- | phpBB/assets/javascript/plupload.js | 8 |
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(); + }); }); }; |