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 = 65; |
| 23 | +$wgEditToolbarStyleVersion = 66; |
24 | 24 | |
25 | 25 | // Set this to true to simply override the stock toolbar for everyone |
26 | 26 | $wgEditToolbarGlobalEnable = false; |
Index: trunk/extensions/UsabilityInitiative/EditToolbar/EditToolbar.js |
— | — | @@ -1370,7 +1370,7 @@ |
1371 | 1371 | return; |
1372 | 1372 | } |
1373 | 1373 | var replaceStr = $j( '#edittoolbar-replace-replace' ).val(); |
1374 | | - var flags = ''; |
| 1374 | + var flags = 'm'; |
1375 | 1375 | var matchCase = $j( '#edittoolbar-replace-case' ).is( ':checked' ); |
1376 | 1376 | var isRegex = $j( '#edittoolbar-replace-regex' ).is( ':checked' ); |
1377 | 1377 | if ( !matchCase ) { |
Index: trunk/extensions/UsabilityInitiative/EditToolbar/EditToolbar.min.js |
— | — | @@ -139,7 +139,7 @@ |
140 | 140 | <td><input type="checkbox" id="edittoolbar-replace-regex" /></td>\ |
141 | 141 | <td><label for="edittoolbar-replace-regex" rel="edittoolbar-tool-replace-regex"></label></td>\ |
142 | 142 | </tr></table></fieldset>',init:function(){$j(this).find('[rel]').each(function(){$j(this).text(gM($j(this).attr('rel')));});$j(this).data('replaceCallback',function(mode){$j('#edittoolbar-replace-nomatch, #edittoolbar-replace-success, #edittoolbar-replace-emptysearch, #edittoolbar-replace-invalidregex').hide();var searchStr=$j('#edittoolbar-replace-search').val();if(searchStr==''){$j('#edittoolbar-replace-emptysearch').show();return;} |
143 | | -var replaceStr=$j('#edittoolbar-replace-replace').val();var flags='';var matchCase=$j('#edittoolbar-replace-case').is(':checked');var isRegex=$j('#edittoolbar-replace-regex').is(':checked');if(!matchCase){flags+='i';} |
| 143 | +var replaceStr=$j('#edittoolbar-replace-replace').val();var flags='m';var matchCase=$j('#edittoolbar-replace-case').is(':checked');var isRegex=$j('#edittoolbar-replace-regex').is(':checked');if(!matchCase){flags+='i';} |
144 | 144 | if(mode=='replaceAll'){flags+='g';} |
145 | 145 | if(!isRegex){searchStr=RegExp.escape(searchStr);} |
146 | 146 | try{var regex=new RegExp(searchStr,flags);}catch(e){$j('#edittoolbar-replace-invalidregex').text(gM('edittoolbar-tool-replace-invalidregex',e.message)).show();return;} |