1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-06 15:45:34 +02:00

[ticket/11915] Make the user aware of the drag-and-drop zone.

PHPBB3-11915
This commit is contained in:
Cesar G 2013-11-27 18:01:18 -08:00
parent 1fedad5e07
commit 020b7a31bf
3 changed files with 7 additions and 1 deletions

View File

@ -26,6 +26,11 @@ phpbb.plupload.initialize = function() {
// Initialize the Plupload uploader.
uploader.init();
// Point out the drag-and-drop zone if it's supported.
if (!uploader.features.dragdrop) {
$('#drag-n-drop-message').show();
}
};
/**

View File

@ -42,6 +42,7 @@ $lang = array_merge($lang, array(
'PLUPLOAD_CLOSE' => 'Close',
'PLUPLOAD_DRAG' => 'Drag files here.',
'PLUPLOAD_DUPLICATE_ERROR' => 'Duplicate file error.',
'PLUPLOAD_DRAG_TEXTAREA' => 'You may also attach files by dragging and dropping them in the message box.',
'PLUPLOAD_ERR_INPUT' => 'Failed to open input stream.',
'PLUPLOAD_ERR_MOVE_UPLOADED' => 'Failed to move uploaded file.',
'PLUPLOAD_ERR_OUTPUT' => 'Failed to open output stream.',

View File

@ -1,7 +1,7 @@
<div class="panel bg3 panel-container" id="attach-panel">
<div class="inner">
<p>{L_ADD_ATTACHMENT_EXPLAIN}</p>
<p>{L_ADD_ATTACHMENT_EXPLAIN} <span class="hidden" id="drag-n-drop-message">{L_PLUPLOAD_DRAG_TEXTAREA}</span></p>
<fieldset class="fields2" id="attach-panel-basic">
<dl>