[ticket/12124] Revert to basic uploader if the html5 runtime is not supported.

PHPBB3-12124
This commit is contained in:
Cesar G 2014-01-24 04:37:29 -08:00
parent 4c102322c1
commit a8a349670a

View file

@ -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();
}
});
};
/**