JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.2.2
[ckeditor.git] / _source / plugins / scayt / dialogs / options.js
index 2d5c5ab..f745d82 100644 (file)
@@ -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