X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Fscayt%2Fdialogs%2Foptions.js;h=f745d8249ecce95dfbe0204f7c32b1f48d08424d;hb=refs%2Ftags%2Fv3.3.2;hp=feb3f0e91fb069a3f7d10837a35ee39a629579b4;hpb=941b0a9ba4e673e292510d80a5a86806994b8ea6;p=ckeditor.git diff --git a/_source/plugins/scayt/dialogs/options.js b/_source/plugins/scayt/dialogs/options.js index feb3f0e..f745d82 100644 --- a/_source/plugins/scayt/dialogs/options.js +++ b/_source/plugins/scayt/dialogs/options.js @@ -30,16 +30,16 @@ CKEDITOR.dialog.add( 'scaytcheck', function( editor ) } function setCheckedValue(radioObj, newValue) { - if(!radioObj) + if (!radioObj) return; var radioLength = radioObj.length; - if(radioLength == undefined) { + if (radioLength == undefined) { radioObj.checked = (radioObj.value == newValue.toString()); return; } - for(var i = 0; i < radioLength; i++) { + for (var i = 0; i < radioLength; i++) { radioObj[i].checked = false; - if(radioObj[i].value == newValue.toString()) { + if (radioObj[i].value == newValue.toString()) { radioObj[i].checked = true; } } @@ -213,9 +213,9 @@ CKEDITOR.dialog.add( 'scaytcheck', function( editor ) i; // Add buttons titles - if (userDicActive) + if ( userDicActive ) { - for ( i in buttons ) + for ( i = 0; i < buttons.length; i++ ) { var button = buttons[ i ]; doc.getById( button ).setHtml( '' + captions[ 'button_' + button] +'' ); @@ -225,7 +225,7 @@ CKEDITOR.dialog.add( 'scaytcheck', function( editor ) // Fill options and dictionary labels. - if (tags[0] == 1) + if ( tags[0] == 1 ) { for ( i in labels ) { @@ -243,9 +243,9 @@ CKEDITOR.dialog.add( 'scaytcheck', function( editor ) } } - var about = '

' + captions[ 'about_throwt_image' ] + '

'+ - '

' + captions[ 'version' ] + dialog.data.scayt.version.toString() + '

' + - '

' + captions[ 'about_throwt_copy' ] + '

'; + var about = '

' + + '

' + captions[ 'version' ] + window.scayt.getAboutInfo().version.toString() + '

' + + '

' + captions[ 'about_throwt_copy' ] + '

'; doc.getById( 'scayt_about' ).setHtml( about );