X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/11af8512489b43c794d003e3cae945bb5793943e..957d75295b2c379b17e61a2a22ee28fb5f701589:/app/assets/javascripts/index.js diff --git a/app/assets/javascripts/index.js b/app/assets/javascripts/index.js index 9e386d54b..085b615c7 100644 --- a/app/assets/javascripts/index.js +++ b/app/assets/javascripts/index.js @@ -54,7 +54,7 @@ $(document).ready(function () { if (xhr.getResponseHeader('X-Page-Title')) { var title = xhr.getResponseHeader('X-Page-Title'); - document.title = decodeURIComponent(escape(title)); + document.title = decodeURIComponent(title); } $('head') @@ -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);