Index: trunk/extensions/WebFonts/js/webfonts.js |
— | — | @@ -198,9 +198,13 @@ |
199 | 199 | var $li = $( '<li />' ).attr('id','pt-webfont') |
200 | 200 | .append( $div ); |
201 | 201 | |
202 | | - //add to the left of top personal links |
203 | | - $($( '#p-personal ul' )[0]).prepend( $li ); |
204 | | - |
| 202 | + //if rtl, add to the right of top personal links. Else, to the left |
| 203 | + if($('body').hasClass('rtl')){ |
| 204 | + $($('#p-personal ul')[0]).append( $li ); |
| 205 | + } |
| 206 | + else{ |
| 207 | + $($('#p-personal ul')[0]).prepend( $li ); |
| 208 | + } |
205 | 209 | //see if there is a font in cookie |
206 | 210 | cookie_font = $.cookie('webfonts-font'); |
207 | 211 | if(cookie_font == null){ |