Detect browser translations
parent
355957afe5
commit
52b1d9eadc
Binary file not shown.
|
@ -1653,14 +1653,14 @@ function installMulti() {
|
|||
});
|
||||
}
|
||||
|
||||
function updateDisplay(data) {
|
||||
function updateDisplay(content) {
|
||||
// This has to be first. If this doesn't happen, performance gets worse the more you click around
|
||||
$(".supportButtonCardContext,.actionsButtonContext").each(function() {
|
||||
var ID = $(this).attr("id");
|
||||
context.destroy("#"+ID);
|
||||
});
|
||||
|
||||
$("#templates_content").html(data);
|
||||
$("#templates_content").html(content);
|
||||
setToolTip();
|
||||
enableSearch();
|
||||
$('img').on("error",function() {
|
||||
|
@ -1707,7 +1707,11 @@ function updateDisplay(data) {
|
|||
$(this).css("font-size",newSize+"px");
|
||||
}
|
||||
});
|
||||
|
||||
if ( $("html").hasClass("translated-ltr") || $("html").hasClass("translated-rtl") || $("head").hasClass("translated-ltr") || $("head").hasClass("translated-rtl") ) {
|
||||
data.translationBanner = addBannerWarning("<?=tr("Browser translation detected. Display issues may result")?>");
|
||||
} else {
|
||||
removeBannerWarning(data.translationBanner);
|
||||
}
|
||||
saveState();
|
||||
}
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
865abbf25bbd17d8de176b1772ff3bb7 ./Apps.page
|
||||
e09e3baad003519ebba28645b59c818c ./Apps.page
|
||||
4e55f7483b661af21a25b677179baffe ./CA_notices.page
|
||||
c7c6da0a4a4a7ac33f387ea178319bae ./ca_settings.page
|
||||
ed2883d6c44c19304c431079596a1731 ./default.cfg
|
||||
|
|
Loading…
Reference in New Issue