mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 13:28:55 +00:00
[ticket/12124] Revert to basic uploader if the html5 runtime is not supported.
PHPBB3-12124
This commit is contained in:
parent
4c102322c1
commit
a8a349670a
1 changed files with 21 additions and 16 deletions
|
@ -11,6 +11,11 @@ phpbb.plupload.ids = [];
|
|||
* @return undefined
|
||||
*/
|
||||
phpbb.plupload.initialize = function() {
|
||||
// Initialize the Plupload uploader.
|
||||
uploader.init();
|
||||
|
||||
// Only execute if Plupload initialized successfully.
|
||||
uploader.bind('Init', function() {
|
||||
phpbb.plupload.form = $(phpbb.plupload.config.form_hook)[0],
|
||||
phpbb.plupload.rowTpl = $('#attach-row-tpl')[0].outerHTML;
|
||||
|
||||
|
@ -22,14 +27,14 @@ phpbb.plupload.initialize = function() {
|
|||
// Set attachment data.
|
||||
phpbb.plupload.setData(phpbb.plupload.data);
|
||||
phpbb.plupload.updateMultipartParams(phpbb.plupload.getSerializedData());
|
||||
});
|
||||
|
||||
// Initialize the Plupload uploader.
|
||||
uploader.init();
|
||||
|
||||
uploader.bind('PostInit', function() {
|
||||
// Point out the drag-and-drop zone if it's supported.
|
||||
if (!uploader.features.dragdrop) {
|
||||
if (!!uploader.features.dragdrop) {
|
||||
$('#drag-n-drop-message').show();
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue