Index: trunk/extensions/UsabilityInitiative/EditToolbar/EditToolbar.js |
— | — | @@ -1102,8 +1102,8 @@ |
1103 | 1103 | 'edittoolbar-tool-table-insert': function() { |
1104 | 1104 | var rowsVal = $j( '#edittoolbar-table-dimensions-rows' ).val(); |
1105 | 1105 | var colsVal = $j( '#edittoolbar-table-dimensions-columns' ).val(); |
1106 | | - var rows = parseInt( rowsVal ); |
1107 | | - var cols = parseInt( colsVal ); |
| 1106 | + var rows = parseInt( rowsVal, 10 ); |
| 1107 | + var cols = parseInt( colsVal, 10 ); |
1108 | 1108 | var header = Math.min( 1, $j( '#edittoolbar-table-dimensions-header:checked' ).size() ); |
1109 | 1109 | if ( isNaN( rows ) || isNaN( cols ) || rows != rowsVal || cols != colsVal ) { |
1110 | 1110 | alert( gM( 'edittoolbar-tool-table-invalidnumber' ) ); |
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 = 55; |
| 23 | +$wgEditToolbarStyleVersion = 56; |
24 | 24 | |
25 | 25 | // Set this to true to simply override the stock toolbar for everyone |
26 | 26 | $wgEditToolbarGlobalEnable = false; |