Index: trunk/extensions/UsabilityInitiative/EditToolbar/EditToolbar.js |
— | — | @@ -343,6 +343,7 @@ |
344 | 344 | parseCharinsert: function( charinsert ) { |
345 | 345 | var retval = {}; |
346 | 346 | for( page in charinsert ) { |
| 347 | + var pageKey = page.replace(/ /g, '_'); |
347 | 348 | var characters = [], attributes = {}, styles = {}; |
348 | 349 | var i = 0; |
349 | 350 | for( line in charinsert[page] ) { |
— | — | @@ -374,17 +375,15 @@ |
375 | 376 | if( charinsert[page][line][character] instanceof Array ) { |
376 | 377 | tool.action.options.pre = charinsert[page][line][character][0]; |
377 | 378 | tool.action.options.post = charinsert[page][line][character][1]; |
378 | | - //tool.text = charinsert[page][line][chr][0] + charinsert[page][line][character][1]; |
379 | 379 | } else { |
380 | 380 | tool.action.options.pre = charinsert[page][line][character]; |
381 | | - //tool.text = charinsert[page][line][character]; |
382 | 381 | } |
383 | 382 | tool.text = tool.action.options.pre + tool.action.options.post; |
384 | 383 | characters[i++] = tool; |
385 | 384 | } |
386 | 385 | characters[i++] = { type: 'break' }; |
387 | 386 | } |
388 | | - retval[page] = { |
| 387 | + retval[pageKey] = { |
389 | 388 | label: page, |
390 | 389 | layout: 'characters', |
391 | 390 | attributes: attributes, |
Index: trunk/extensions/UsabilityInitiative/EditToolbar/EditToolbar.php |
— | — | @@ -18,7 +18,7 @@ |
19 | 19 | /* Configuration */ |
20 | 20 | |
21 | 21 | // Bump the version number every time you change any of the .css/.js files |
22 | | -$wgEditToolbarStyleVersion = 3; |
| 22 | +$wgEditToolbarStyleVersion = 4; |
23 | 23 | |
24 | 24 | // Set this to true to simply override the stock toolbar for everyone |
25 | 25 | $wgEditToolbarGlobalEnable = false; |