mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/11915] Make the user aware of the drag-and-drop zone.
PHPBB3-11915
This commit is contained in:
parent
1fedad5e07
commit
020b7a31bf
3 changed files with 7 additions and 1 deletions
|
@ -26,6 +26,11 @@ phpbb.plupload.initialize = function() {
|
||||||
|
|
||||||
// Initialize the Plupload uploader.
|
// Initialize the Plupload uploader.
|
||||||
uploader.init();
|
uploader.init();
|
||||||
|
|
||||||
|
// Point out the drag-and-drop zone if it's supported.
|
||||||
|
if (!uploader.features.dragdrop) {
|
||||||
|
$('#drag-n-drop-message').show();
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -42,6 +42,7 @@ $lang = array_merge($lang, array(
|
||||||
'PLUPLOAD_CLOSE' => 'Close',
|
'PLUPLOAD_CLOSE' => 'Close',
|
||||||
'PLUPLOAD_DRAG' => 'Drag files here.',
|
'PLUPLOAD_DRAG' => 'Drag files here.',
|
||||||
'PLUPLOAD_DUPLICATE_ERROR' => 'Duplicate file error.',
|
'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_INPUT' => 'Failed to open input stream.',
|
||||||
'PLUPLOAD_ERR_MOVE_UPLOADED' => 'Failed to move uploaded file.',
|
'PLUPLOAD_ERR_MOVE_UPLOADED' => 'Failed to move uploaded file.',
|
||||||
'PLUPLOAD_ERR_OUTPUT' => 'Failed to open output stream.',
|
'PLUPLOAD_ERR_OUTPUT' => 'Failed to open output stream.',
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<div class="panel bg3 panel-container" id="attach-panel">
|
<div class="panel bg3 panel-container" id="attach-panel">
|
||||||
<div class="inner">
|
<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">
|
<fieldset class="fields2" id="attach-panel-basic">
|
||||||
<dl>
|
<dl>
|
||||||
|
|
Loading…
Add table
Reference in a new issue