Skip to:
Content

bbPress.org


Ignore:
Timestamp:
05/07/2012 04:32:55 AM (14 years ago)
Author:
johnjamesjacoby
Message:

Converter:

  • Remove commented cruft from bbPress 1.x converter
  • Improvements to ajax and spinner
  • See #1820
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/plugin/bbp-admin/bbp-converter.php

    r3888 r3893  
    190190
    191191            function bbconverter_start() {
    192                 if( !bbconverter_is_running ) {
     192                if( false == bbconverter_is_running ) {
    193193                    bbconverter_is_running = true;
    194194                    jQuery('#bbp-converter-start').hide();
     
    214214            function bbconverter_stop() {
    215215                bbconverter_is_running = false;
     216                jQuery('#bbp-converter-message strong').removeClass( 'loading' );
    216217            }
    217218
     
    224225                    jQuery('#bbp-converter-stop').hide();
    225226                    jQuery('#bbp-converter-progress').hide();
     227                    bbconverter_stop();
    226228                    clearTimeout( bbconverter_run_timer );
    227229                } else if( bbconverter_is_running ) { // keep going
     
    238240
    239241            function bbconverter_log(text) {
    240                 if(jQuery('#bbp-converter-message').css('display') == 'none') {
     242                if ( jQuery('#bbp-converter-message').css('display') == 'none' ) {
    241243                    jQuery('#bbp-converter-message').show();
    242244                }
    243                 if( text ) {
     245                if ( text ) {
    244246                    jQuery('#bbp-converter-message strong').removeClass( 'loading' );
    245247                    jQuery('#bbp-converter-message').prepend('<p><strong class="loading">' + text + '</strong></p>');
     
    578580    public $sync_table_name;
    579581
     582    /** Methods ***************************************************************/
     583
    580584    /**
    581585     * This is the constructor and it connects to the platform databases.
    582586     */
    583     function __construct() {
     587    public function __construct() {
    584588        $this->setup_globals();
    585589    }
Note: See TracChangeset for help on using the changeset viewer.