X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/6feea89e7b23f7d8a049e04172290780cfa0b45f..db66e4884772629ba51db905f55c0e48f4cebb94:/app/assets/javascripts/index.js diff --git a/app/assets/javascripts/index.js b/app/assets/javascripts/index.js index 9e386d54b..17476bb51 100644 --- a/app/assets/javascripts/index.js +++ b/app/assets/javascripts/index.js @@ -148,7 +148,8 @@ $(document).ready(function () { } } - $('.leaflet-control .control-button').tooltip({placement: 'left', container: 'body'}); + var placement = $('html').attr('dir') === 'rtl' ? 'right' : 'left'; + $('.leaflet-control .control-button').tooltip({placement: placement, container: 'body'}); var expiry = new Date(); expiry.setYear(expiry.getFullYear() + 10);