Ticket #2815: 2865.patch

File 2865.patch, 1.7 KB (added by WebSpellChecker.net, 15 years ago)

increased timeouts, added suport of SSL

  • editor/wsc/w.html

     
    132132        clearErrorUsermessage() ;
    133133        var _errorMessage = 'The SpellChecker Service is currently unavailable.' ;
    134134        if ( 'undefined' != typeof( oEditor.FCK.Config.WSChLoaderScript ) )
    135             _errorMessage = '<div>The SpellChecker Service is currently unavailable.</div><p>Error application loading<br>service host: ' + oEditor.FCK.Config.WSChLoaderScript + '</p>';
     135            _errorMessage = '<div>The SpellChecker Service is currently unavailable.</div><p>Error loading applicaion<br>service host: ' + oEditor.FCK.Config.WSChLoaderScript + '</p>';
    136136
    137137        var burnSpelling = function( oName, _eMessage )
    138138        {
     
    142142                {
    143143                        if ( typeof( window[oName] ) == 'function' )
    144144                                initAndSpell() ;
    145                         else if ( i++ == 30 )
     145                        else if ( i++ == 45*4 )
    146146                                _cancelOnError( _eMessage ) ;
    147147                }
    148148        }
    149149
    150         gInterval = window.setInterval( burnSpelling( 'doSpell', _errorMessage ), 100 ) ;
     150        gInterval = window.setInterval( burnSpelling( 'doSpell', _errorMessage ), 1000/4 ) ;
    151151
    152152        // WSC CORE init section
    153         var baseUrl = "http://loader.spellchecker.net/sproxy_fck/sproxy.php" ;
     153        var protocol = document.location.protocol || 'http:';
     154        var baseUrl = "loader.spellchecker.net/sproxy_fck/sproxy.php" ;
    154155        var plugin = "fck2" ;
    155156        var customerid = oEditor.FCK.Config.WSCnCustomerId
    156157                || "1:ua3xw1-2XyGJ3-GWruD3-6OFNT1-oXcuB1-nR6Bp4-hgQHc-EcYng3-sdRXG3-NOfFk" ;
    157158        var wscCoreUrl = oEditor.FCK.Config.WSChLoaderScript
    158                 || ( baseUrl + '?'
     159                || ( protocol + '//' +baseUrl + '?'
    159160                        + 'plugin='    + plugin + '&'
    160161                        + 'customerid='+ customerid + '&'
    161162                        + 'cmd=script&doc=wsc&schema=22' ) ;
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy