Upload folder via GUI - assets
This commit is contained in:
@@ -634,11 +634,11 @@
|
||||
// Sofort-Vorschau
|
||||
var objectUrl = URL.createObjectURL(file);
|
||||
var $wrap = $('#wbfProfileBannerWrap');
|
||||
var $existing = $wrap.find('.wbf-profile-banner__img');
|
||||
var $existing = $wrap.find('.wbf-pv-banner__img');
|
||||
|
||||
// Falls noch kein Banner-Bild existiert, eins einfügen
|
||||
if ($existing.length === 0) {
|
||||
$wrap.prepend('<img src="' + objectUrl + '" alt="" id="wbfProfileBanner" class="wbf-profile-banner__img" style="opacity:.4">');
|
||||
$wrap.prepend('<img src="' + objectUrl + '" alt="" id="wbfProfileBanner" class="wbf-pv-banner__img" style="opacity:.4">');
|
||||
} else {
|
||||
$existing.attr('src', objectUrl).css('opacity', '.4');
|
||||
}
|
||||
@@ -655,7 +655,7 @@
|
||||
processData: false,
|
||||
contentType: false,
|
||||
success: function (res) {
|
||||
var $img = $wrap.find('.wbf-profile-banner__img');
|
||||
var $img = $wrap.find('.wbf-pv-banner__img');
|
||||
if (res.success) {
|
||||
URL.revokeObjectURL(objectUrl);
|
||||
$img.attr('src', res.data.banner_url + '?v=' + Date.now());
|
||||
@@ -663,7 +663,7 @@
|
||||
$img.css('opacity', '');
|
||||
},
|
||||
error: function () {
|
||||
$wrap.find('.wbf-profile-banner__img').css('opacity', '');
|
||||
$wrap.find('.wbf-pv-banner__img').css('opacity', '');
|
||||
}
|
||||
});
|
||||
});
|
||||
@@ -1218,6 +1218,17 @@
|
||||
url = base + sep + 'forum_thread=' + n.thread_id;
|
||||
text = actor + ' hat deinen Beitrag geliket';
|
||||
sub = n.thread_title || '';
|
||||
} else if (n.type === 'plugin_update') {
|
||||
url = n.plugin_url || base;
|
||||
var versionStr = n.plugin_version ? ' auf <strong>v' + $('<span>').text(n.plugin_version).html() + '</strong>' : '';
|
||||
var pluginName = $('<span>').text(n.plugin_title || 'Plugin').html();
|
||||
text = '<i class="fas fa-puzzle-piece" style="color:#00d4ff;margin-right:5px"></i><strong>' + pluginName + '</strong> wurde aktualisiert' + versionStr;
|
||||
sub = 'Plugin-Update · Beobachtungsliste';
|
||||
if (n.plugin_thumb) {
|
||||
avatar = '<img src="' + n.plugin_thumb + '" alt="" class="wbf-dm-inbox-item__avatar" style="border-radius:6px;object-fit:cover;width:36px;height:36px;">';
|
||||
} else {
|
||||
avatar = '<div style="width:36px;height:36px;border-radius:6px;background:rgba(0,212,255,.1);border:1px solid rgba(0,212,255,.2);display:flex;align-items:center;justify-content:center;color:#00d4ff;font-size:16px;flex-shrink:0"><i class=\'fas fa-puzzle-piece\'></i></div>';
|
||||
}
|
||||
} else {
|
||||
// reply (default)
|
||||
url = base + sep + 'forum_thread=' + n.thread_id;
|
||||
@@ -2265,7 +2276,7 @@
|
||||
$btn.prop('disabled', false).html('<i class="fab fa-discord"></i> Code senden');
|
||||
if (res.success) {
|
||||
wbfDcMsg('<i class="fas fa-check" style="color:#16a34a"></i> ' + (res.data.message || 'Code gesendet!'), '#16a34a');
|
||||
$('#wbf-dc-step1').slideUp(200, function () { $('#wbf-dc-step2').slideDown(200); });
|
||||
$('#wbf-dc-step1-inline').slideUp(150); $('#wbf-dc-step2').slideDown(200);
|
||||
$('#wbf-discord-code-input').val('').focus();
|
||||
wbfDcStep = 2;
|
||||
} else {
|
||||
@@ -2323,7 +2334,7 @@
|
||||
|
||||
// „Zurück" in Schritt 2
|
||||
$(document).on('click', '#wbf-discord-code-back', function () {
|
||||
$('#wbf-dc-step2').slideUp(200, function () { $('#wbf-dc-step1').slideDown(200); });
|
||||
$('#wbf-dc-step2').slideUp(200); $('#wbf-dc-step1-inline').slideDown(150);
|
||||
wbfDcMsg('');
|
||||
wbfDcStep = 1;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user