Skip to:
Content

bbPress.org

Changeset 6636


Ignore:
Timestamp:
07/25/2017 10:06:17 PM (7 years ago)
Author:
johnjamesjacoby
Message:

Converter: Update bbp_converter_status() to use current step.

When actually converting data, this step is only bumped when moving between major events, not minors.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/admin/assets/js/converter.js

    r6601 r6636  
    257257     * @since 2.6.0 bbPress (r6513)
    258258     *
     259     * @param {object} data
     260     *
    259261     * @returns {void}
    260262     */
    261263    function bbp_converter_status( data ) {
    262         var remaining = parseInt( BBP_Converter.delay, 10 ) / 1000,
    263             step      = parseInt( data.current_step,   10 ) + 1;
     264        var remaining = parseInt( BBP_Converter.delay, 10 ) / 1000;
    264265
    265266        status.text( BBP_Converter.strings.status_counting.replace( '%s', remaining ) );
     
    274275
    275276                if ( parseInt( data.current_step, 10 ) < parseInt( data.final_step, 10 ) ) {
    276                     status.text( BBP_Converter.strings.status_up_next.replace( '%s', step ) );
     277                    status.text( BBP_Converter.strings.status_up_next.replace( '%s', data.current_step ) );
    277278                } else {
    278279                    status.text( BBP_Converter.strings.status_complete );
Note: See TracChangeset for help on using the changeset viewer.