Plugin Directory

Changeset 3319599


Ignore:
Timestamp:
06/29/2025 10:08:09 PM (9 months ago)
Author:
bluebranch
Message:

Fix missing reload files after bulk edit

Location:
bilder-alt/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • bilder-alt/trunk/assets/bilder-alt-media-bulk.js

    r3319557 r3319599  
    3232                        var processImage = function (index) {
    3333                            if (index >= images.length) {
     34                                location.reload();
    3435                                return;
    3536                            }
     
    4041                            model.set('uploading', true);
    4142
    42                             // 4) API-Aufruf mit Callbacks
    4343                            bilderAltGenerate(
    4444                                id,
    45                                 function onSuccess() {
     45                                function onSuccess(altText) {
     46                                    model.set('uploading', false);
    4647                                },
    47                                 function onFailure() {
     48                                function () {
     49                                    model.set('uploading', false);
    4850                                },
    4951                                function onAlways() {
    50                                     model.set('uploading', false);
    5152                                    processImage(index + 1);
    5253                                }
  • bilder-alt/trunk/assets/bilder-alt.js

    r3319557 r3319599  
    77        `);
    88    jquery('#wpbody-content').prepend($notice);
    9     // Automatisch ausblenden nach 5s
    10     setTimeout(() => $notice.fadeOut(500, () => $notice.remove()), 5000);
     9    setTimeout(() => $notice.fadeOut(500, () => $notice.remove()), 4000);
    1110}
    1211
     
    1817    }).done(function (res) {
    1918        bilderAltShowNotice('success', `✅ Alt-Text erfolgreich erstellt: <strong>${res.altText}</strong>`);
     19
    2020        if (typeof callbackSuccess === "function") {
    21             callbackSuccess()
     21            callbackSuccess(res.altText)
    2222        }
    2323    }).fail(function (err) {
    2424        const msg = err.responseJSON?.error || 'Unbekannter Fehler bei der Alt-Text-Erstellung.';
     25
    2526        bilderAltShowNotice('error', `❌ Fehler: ${msg}`);
     27
    2628        if (typeof callbackFailure === "function") {
    2729            callbackFailure()
  • bilder-alt/trunk/bilder-alt.php

    r3319575 r3319599  
    55 * Plugin URI: https://app.bilder-alt.de/
    66 * Description: Erstelle automatisch SEO-optimierte Alt-Texte für deine Bilder – direkt in WordPress. Das Plugin „Bilder Alt“ nutzt künstliche Intelligenz, um passende Bildbeschreibungen zu generieren, die sowohl für Suchmaschinen als auch für Nutzer verständlich sind. Spare Zeit, verbessere deine Barrierefreiheit und steigere deine Sichtbarkeit in der Google-Bildersuche. Die Nutzung erfordert einen kostenlosen API-Zugang unter https://app.bilder-alt.de
    7  * Version: 1.0.1
     7 * Version: 1.0.2
    88 * Author: Lukas Beck <[email protected]>
    99 * Author URI: https://www.bluebranch.de/
  • bilder-alt/trunk/readme.txt

    r3319575 r3319599  
    66Tested up to: 6.8
    77Requires PHP: 7.4
    8 Stable tag: 1.0.1
     8Stable tag: 1.0.2
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    7474== Changelog ==
    7575
     76= 1.0.2 =
     77* Fix missing reload files after bulk edit
     78
     79= 1.0.1 =
     80* Add new image formats and assets for the plugin
     81
    7682= 1.0.0 =
    7783* Initial release
Note: See TracChangeset for help on using the changeset viewer.