JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.2.2
[ckeditor.git] / _source / plugins / scayt / dialogs / options.js
index feb3f0e..f745d82 100644 (file)
@@ -30,16 +30,16 @@ CKEDITOR.dialog.add( 'scaytcheck', function( editor )
        }\r
 \r
        function setCheckedValue(radioObj, newValue) {\r
-               if(!radioObj)\r
+               if (!radioObj)\r
                        return;\r
                var radioLength = radioObj.length;\r
-               if(radioLength == undefined) {\r
+               if (radioLength == undefined) {\r
                        radioObj.checked = (radioObj.value == newValue.toString());\r
                        return;\r
                }\r
-               for(var i = 0; i < radioLength; i++) {\r
+               for (var i = 0; i < radioLength; i++) {\r
                        radioObj[i].checked = false;\r
-                       if(radioObj[i].value == newValue.toString()) {\r
+                       if (radioObj[i].value == newValue.toString()) {\r
                                radioObj[i].checked = true;\r
                        }\r
                }\r
@@ -213,9 +213,9 @@ CKEDITOR.dialog.add( 'scaytcheck', function( editor )
                        i;\r
 \r
                // Add buttons titles\r
-               if (userDicActive)\r
+               if ( userDicActive )\r
                {\r
-                       for ( i in buttons )\r
+                       for ( i = 0; i < buttons.length; i++ )\r
                        {\r
                                var button = buttons[ i ];\r
                                doc.getById( button ).setHtml( '<span class="cke_dialog_ui_button">' + captions[ 'button_' + button]  +'</span>' );\r
@@ -225,7 +225,7 @@ CKEDITOR.dialog.add( 'scaytcheck', function( editor )
 \r
 \r
                // Fill options and dictionary labels.\r
-               if (tags[0] == 1)\r
+               if ( tags[0] == 1 )\r
                {\r
                        for ( i in labels )\r
                        {\r
@@ -243,9 +243,9 @@ CKEDITOR.dialog.add( 'scaytcheck', function( editor )
                        }\r
                }\r
 \r
-               var about = '<p>' + captions[ 'about_throwt_image' ] + '</p>'+\r
-                                       '<p>' + captions[ 'version' ]  + dialog.data.scayt.version.toString() + '</p>' +\r
-                                       '<p>' + captions[ 'about_throwt_copy' ] + '</p>';\r
+               var about = '<p><img src="' + window.scayt.getAboutInfo().logoURL + '" /></p>' +\r
+                               '<p>' + captions[ 'version' ] + window.scayt.getAboutInfo().version.toString() + '</p>' +\r
+                               '<p>' + captions[ 'about_throwt_copy' ] + '</p>';\r
 \r
                doc.getById( 'scayt_about' ).setHtml( about );\r
 \r