Index: trunk/extensions/UsabilityInitiative/EditToolbar/EditToolbar.js |
— | — | @@ -1100,10 +1100,12 @@ |
1101 | 1101 | dialog: { |
1102 | 1102 | buttons: { |
1103 | 1103 | 'edittoolbar-tool-table-insert': function() { |
1104 | | - var rows = parseInt( $j( '#edittoolbar-table-dimensions-rows' ).val() ); |
1105 | | - var cols = parseInt( $j( '#edittoolbar-table-dimensions-columns' ).val() ); |
| 1104 | + var rowsVal = $j( '#edittoolbar-table-dimensions-rows' ).val(); |
| 1105 | + var colsVal = $j( '#edittoolbar-table-dimensions-columns' ).val(); |
| 1106 | + var rows = parseInt( rowsVal ); |
| 1107 | + var cols = parseInt( colsVal ); |
1106 | 1108 | var header = Math.min( 1, $j( '#edittoolbar-table-dimensions-header:checked' ).size() ); |
1107 | | - if ( isNaN( rows ) || isNaN( cols ) ) { |
| 1109 | + if ( isNaN( rows ) || isNaN( cols ) || rows != rowsVal || cols != colsVal ) { |
1108 | 1110 | alert( gM( 'edittoolbar-tool-table-invalidnumber' ) ); |
1109 | 1111 | return; |
1110 | 1112 | } |
Index: trunk/extensions/UsabilityInitiative/EditToolbar/EditToolbar.php |
— | — | @@ -19,7 +19,7 @@ |
20 | 20 | /* Configuration */ |
21 | 21 | |
22 | 22 | // Bump the version number every time you change any of the .css/.js files |
23 | | -$wgEditToolbarStyleVersion = 54; |
| 23 | +$wgEditToolbarStyleVersion = 55; |
24 | 24 | |
25 | 25 | // Set this to true to simply override the stock toolbar for everyone |
26 | 26 | $wgEditToolbarGlobalEnable = false; |