Fixes rtl languages

This commit is contained in:
Yury Delendik 2012-05-01 17:08:30 -05:00
parent 261f92ebd1
commit 72ec5d070b
4 changed files with 127 additions and 55 deletions

View file

@ -1541,6 +1541,10 @@ function selectScaleOption(value) {
return predefinedValueFound;
}
window.addEventListener('localized', function localized(evt) {
document.getElementsByTagName('html')[0].dir = mozL10n.language.direction;
}, true);
window.addEventListener('scalechange', function scalechange(evt) {
var customScaleOption = document.getElementById('customScaleOption');
customScaleOption.selected = false;