mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-14 17:56:16 +01:00
Deprecated uploader.open, use uploader.show instead
... as it now takes a single Object argument instead of multiple parameters. Also, closes #3942. Help text is just omitted now.
This commit is contained in:
@@ -110,7 +110,12 @@ define('admin/settings', ['uploader', 'sounds'], function(uploader, sounds) {
|
||||
$('#content input[data-action="upload"]').each(function() {
|
||||
var uploadBtn = $(this);
|
||||
uploadBtn.on('click', function() {
|
||||
uploader.open(uploadBtn.attr('data-route'), {}, 0, function(image) {
|
||||
uploader.show({
|
||||
route: uploadBtn.attr('data-route'),
|
||||
params: {},
|
||||
fileSize: 0,
|
||||
showHelp: uploadBtn.attr('data-help') ? uploadBtn.attr('data-help') === 1 : undefined
|
||||
}, function(image) {
|
||||
$('#' + uploadBtn.attr('data-target')).val(image);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user