Index: branches/resourceloader/phase3/resources/mediawiki/legacy/mediawiki.legacy.wikibits.js |
— | — | @@ -228,9 +228,9 @@ |
229 | 229 | mw.legacy.clientPC.indexOf( 'konqueror' ) != -1 |
230 | 230 | ) |
231 | 231 | ) { |
232 | | - return = 'ctrl-'; |
| 232 | + return 'ctrl-'; |
233 | 233 | } else if ( mw.legacy.is_ff2 ) { |
234 | | - return = 'alt-shift-'; |
| 234 | + return 'alt-shift-'; |
235 | 235 | } |
236 | 236 | return 'alt-'; |
237 | 237 | } )(), |
— | — | @@ -754,7 +754,7 @@ |
755 | 755 | */ |
756 | 756 | |
757 | 757 | /* Functions */ |
758 | | - |
| 758 | + |
759 | 759 | 'changeText': function( el, newText ) { |
760 | 760 | // Safari work around |
761 | 761 | if ( el.innerText ) { |
— | — | @@ -765,7 +765,7 @@ |
766 | 766 | }, |
767 | 767 | 'escapeQuotes': function( text ) { |
768 | 768 | var re = new RegExp( '\'', 'g' ); |
769 | | - text = text.replace( re, '\\'' ); |
| 769 | + text = text.replace( re, '\\\'' ); |
770 | 770 | re = new RegExp( '\\n', 'g' ); |
771 | 771 | text = text.replace( re, '\\n' ); |
772 | 772 | return escapeQuotesHTML( text ); |