Plugin Directory

Changeset 2764905


Ignore:
Timestamp:
08/02/2022 04:00:14 AM (4 years ago)
Author:
minegapai
Message:

Alt Text Magic - 1.0.2

Location:
alttextmagic
Files:
24 added
5 edited

Legend:

Unmodified
Added
Removed
  • alttextmagic/trunk/css/atm-global.css

    r2760856 r2764905  
    199199.nav-link.outline-btn:focus {
    200200    background: #eaeaf5;
     201}
     202
     203.nav-link:disabled {
     204    background: #b9b9c4;
     205    border-color: #b9b9c4;
     206}
     207
     208.nav-link:hover:disabled {
     209    background: #b9b9c4;
     210    border-color: #b9b9c4;
    201211}
    202212
  • alttextmagic/trunk/includes/library_updater.php

    r2760856 r2764905  
    3030                                </div>
    3131                                <div>
    32                                     <button type="submit" class="nav-link start-btn wide">
     32                                    <button type="submit" class="nav-link start-btn wide" id="libraryUpdateStartButton">
    3333                                        Start Update
    3434                                    </button>
  • alttextmagic/trunk/js/library_updater.js

    r2764890 r2764905  
    183183    let state = {
    184184        topContainer: document.getElementById('load-account'),
     185        libraryUpdateStartButton: document.getElementById('libraryUpdateStartButton'),
    185186        batchNotRunning: document.getElementById('altTextMagicBatchNotRunning'),
    186187        batchRunning: document.getElementById('altTextMagicBatchRunning'),
     
    267268        state.altTextMagicAddAltTagsForm.addEventListener('submit', async (e) => {
    268269            e.preventDefault();
     270
     271            state.libraryUpdateStartButton.disabled = true;
    269272
    270273            // Get the value of the overwrite alt text checkbox.
     
    298301                toastySuccess('Library Updater completed successfully.');
    299302            }
     303
     304            state.libraryUpdateStartButton.disabled = false;
     305
    300306            updateDisplay(state, false);
    301307        });
  • alttextmagic/trunk/plugin.php

    r2764894 r2764905  
    55 * Plugin URI: https://alttextmagic.com/
    66 * Description: Automatically generates descriptive alternative text for images upon upload.
    7  * Version: 1.0.1
     7 * Version: 1.0.2
    88 * Requires at least: 4.2.0
    99 * Requires PHP: 7.2
  • alttextmagic/trunk/readme.txt

    r2764894 r2764905  
    55Requires at least: 4.2
    66Tested up to: 6.0
    7 Stable tag: 1.0.1
     7Stable tag: 1.0.2
    88Requires PHP: 7.0
    99License: GPLv3 or later
     
    7474
    7575== Changelog ==
     76= 1.0.2 =
     77* Disabled the library updater button on submit to avoid multiple submits.
     78
    7679= 1.0.1 =
    7780* JS and CSS libraries are only enqueued on Alt Text Magic pages instead of globally.
Note: See TracChangeset for help on using the changeset viewer.