mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/12124] Set attachment data to preserve AJAX delete functionality.
PHPBB3-12124
This commit is contained in:
parent
10149933bd
commit
a18dc8d1d6
1 changed files with 4 additions and 4 deletions
|
@ -14,6 +14,10 @@ phpbb.plupload.initialize = function() {
|
||||||
// Initialize the Plupload uploader.
|
// Initialize the Plupload uploader.
|
||||||
uploader.init();
|
uploader.init();
|
||||||
|
|
||||||
|
// Set attachment data.
|
||||||
|
phpbb.plupload.setData(phpbb.plupload.data);
|
||||||
|
phpbb.plupload.updateMultipartParams(phpbb.plupload.getSerializedData());
|
||||||
|
|
||||||
// Only execute if Plupload initialized successfully.
|
// Only execute if Plupload initialized successfully.
|
||||||
uploader.bind('Init', function() {
|
uploader.bind('Init', function() {
|
||||||
phpbb.plupload.form = $(phpbb.plupload.config.form_hook)[0],
|
phpbb.plupload.form = $(phpbb.plupload.config.form_hook)[0],
|
||||||
|
@ -23,10 +27,6 @@ phpbb.plupload.initialize = function() {
|
||||||
$('#attach-row-tpl, #attach-panel-basic').remove();
|
$('#attach-row-tpl, #attach-panel-basic').remove();
|
||||||
// Show multi-file upload options.
|
// Show multi-file upload options.
|
||||||
$('#attach-panel-multi').show();
|
$('#attach-panel-multi').show();
|
||||||
|
|
||||||
// Set attachment data.
|
|
||||||
phpbb.plupload.setData(phpbb.plupload.data);
|
|
||||||
phpbb.plupload.updateMultipartParams(phpbb.plupload.getSerializedData());
|
|
||||||
});
|
});
|
||||||
|
|
||||||
uploader.bind('PostInit', function() {
|
uploader.bind('PostInit', function() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue