JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.1.1
[ckeditor.git] / _source / plugins / table / dialogs / table.js
index 215a373..4675a0c 100644 (file)
@@ -154,7 +154,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
                                        // Should we make all first cells in a row TH?\r
                                        if ( !this.hasColumnHeaders && ( headers == 'col' || headers == 'both' ) )\r
                                        {\r
-                                               for( row = 0 ; row < table.$.rows.length ; row++ )\r
+                                               for ( row = 0 ; row < table.$.rows.length ; row++ )\r
                                                {\r
                                                        newCell = new CKEDITOR.dom.element( table.$.rows[ row ].cells[ 0 ] );\r
                                                        newCell.renameNode( 'th' );\r
@@ -165,7 +165,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
                                        // Should we make all first TH-cells in a row make TD? If 'yes' we do it the other way round :-)\r
                                        if ( ( this.hasColumnHeaders ) && !( headers == 'col' || headers == 'both' ) )\r
                                        {\r
-                                               for( i = 0 ; i < table.$.rows.length ; i++ )\r
+                                               for ( i = 0 ; i < table.$.rows.length ; i++ )\r
                                                {\r
                                                        row = new CKEDITOR.dom.element( table.$.rows[i] );\r
                                                        if ( row.getParent().getName() == 'tbody' )\r
@@ -192,7 +192,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
                                        else\r
                                                table.removeStyle( 'width' );\r
 \r
-                                       if( !table.getAttribute( 'style' ) )\r
+                                       if ( !table.getAttribute( 'style' ) )\r
                                                table.removeAttribute( 'style' );\r
                                }\r
 \r
@@ -380,6 +380,8 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
                                                                                                                var widthMatch = widthPattern.exec( selectedTable.$.style.width );\r
                                                                                                                if ( widthMatch )\r
                                                                                                                        this.setValue( widthMatch[1] );\r
+                                                                                                               else\r
+                                                                                                                       this.setValue( '' );\r
                                                                                                        },\r
                                                                                                        commit : commitValue\r
                                                                                                },\r