Ticket #2173: 2173_2.patch

File 2173_2.patch, 4.3 KB (added by Alfonso Martínez de Lizarrondo, 16 years ago)

Revised patch

  • _whatsnew.html

     
    5151                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2163">#2163</a>] If the FCKConfig.DocType
    5252                        setting points to a HTML DocType then the output won't generate self-closing tags (it will output
    5353                        &lt;img &gt; instead of &lt;img /&gt;).</li>
     54                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2173">#2173</a>] A throbber will
     55                        be shown in the Quick Uploads.</li>
    5456        </ul>
    5557        <p>
    5658                Fixed Bugs:</p>
  • editor/dialog/fck_flash/fck_flash.js

     
    236236
    237237function OnUploadCompleted( errorNumber, fileUrl, fileName, customMsg )
    238238{
     239        // Remove animation
     240        window.parent.Throbber.Hide() ;
     241        GetE( 'divUpload' ).style.display  = '' ;
     242
    239243        switch ( errorNumber )
    240244        {
    241245                case 0 :        // No errors
     
    288292                return false ;
    289293        }
    290294
     295        // Show animation
     296        window.parent.Throbber.Show( 100 ) ;
     297        GetE( 'divUpload' ).style.display  = 'none' ;
     298
    291299        return true ;
    292300}
  • editor/dialog/fck_image/fck_image.js

     
    447447
    448448function OnUploadCompleted( errorNumber, fileUrl, fileName, customMsg )
    449449{
     450        // Remove animation
     451        window.parent.Throbber.Hide() ;
     452        GetE( 'divUpload' ).style.display  = '' ;
     453
    450454        switch ( errorNumber )
    451455        {
    452456                case 0 :        // No errors
     
    500504                return false ;
    501505        }
    502506
     507        // Show animation
     508        window.parent.Throbber.Show( 100 ) ;
     509        GetE( 'divUpload' ).style.display  = 'none' ;
     510
    503511        return true ;
    504512}
  • editor/dialog/fck_link/fck_link.js

     
    650650
    651651function SetUrl( url )
    652652{
    653         document.getElementById('txtUrl').value = url ;
     653        GetE('txtUrl').value = url ;
    654654        OnUrlChange() ;
    655655        dialog.SetSelectedTab( 'Info' ) ;
    656656}
    657657
    658658function OnUploadCompleted( errorNumber, fileUrl, fileName, customMsg )
    659659{
     660        // Remove animation
     661        window.parent.Throbber.Hide() ;
     662        GetE( 'divUpload' ).style.display  = '' ;
     663
    660664        switch ( errorNumber )
    661665        {
    662666                case 0 :        // No errors
     
    709713                return false ;
    710714        }
    711715
     716        // Show animation
     717        window.parent.Throbber.Show( 100 ) ;
     718        GetE( 'divUpload' ).style.display  = 'none' ;
     719
    712720        return true ;
    713721}
    714722
  • editor/fckdialog.html

     
    245245
    246246                        var throbberParent = $( 'throbberBlock' ) ;
    247247
    248                         // Create the throbber blocks.
    249                         var classIds = [ 1,2,3,4,5,4,3,2 ] ;
    250                         while ( classIds.length > 0 )
    251                                 throbberParent.appendChild( document.createElement( 'div' ) ).className = ' throbber_' + classIds.shift() ;
     248                        if (throbberParent.childNodes.length == 0)
     249                        {
     250                                // Create the throbber blocks.
     251                                var classIds = [ 1,2,3,4,5,4,3,2 ] ;
     252                                while ( classIds.length > 0 )
     253                                        throbberParent.appendChild( document.createElement( 'div' ) ).className = ' throbber_' + classIds.shift() ;
     254                        }
    252255
    253256                        // Center the throbber.
    254257                        var frm = $( 'contents' ) ;
     
    261264                        // Show it.
    262265                        throbberParent.style.visibility = ''  ;
    263266
     267                        // Hide tabs and buttons:
     268                        $( 'Tabs' ).style.visibility = 'hidden' ;
     269                        $( 'PopupButtons' ).style.visibility = 'hidden' ;
     270
    264271                        // Setup the animation interval.
    265272                        timer = setInterval( updateThrobber, 100 ) ;
    266273                },
     
    273280                                timer = null ;
    274281                        }
    275282
    276                         var throbberParent = document.getElementById( 'throbberBlock' ) ;
    277                         if ( throbberParent )
    278                                 FCKDomTools.RemoveNode( throbberParent ) ;
     283                        $( 'throbberBlock' ).style.visibility = 'hidden' ;
     284
     285                        // Show tabs and buttons:
     286                        $( 'Tabs' ).style.visibility = '' ;
     287                        $( 'PopupButtons' ).style.visibility = '' ;
    279288                }
    280289        } ;
    281290}() ;
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy