2015-10-17 09:29:42 -07:00
|
|
|
|
(function () {
|
|
|
|
|
|
|
|
|
|
Dashboard.importCss('devices/ie/ie.css');
|
|
|
|
|
|
|
|
|
|
function onPageShow() {
|
|
|
|
|
|
|
|
|
|
var page = this;
|
|
|
|
|
|
2015-10-18 16:23:48 -07:00
|
|
|
|
if (navigator.userAgent.toLowerCase().indexOf('windows nt 10.') != -1) {
|
2015-10-17 09:29:42 -07:00
|
|
|
|
|
2015-10-18 16:23:48 -07:00
|
|
|
|
var expectedValue = new Date().toDateString() + "1";
|
2015-10-17 09:29:42 -07:00
|
|
|
|
if (appStorage.getItem("ieswitchtoedge") == expectedValue) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var msg = Globalize.translate('MessageTryMicrosoftEdge');
|
|
|
|
|
|
|
|
|
|
msg += "<br/><br/>";
|
|
|
|
|
msg += '<a href="https://www.microsoft.com/en-us/windows/microsoft-edge" target="_blank">' + Globalize.translate('ButtonLearnMore') + '</a>';
|
|
|
|
|
|
|
|
|
|
Dashboard.alert({
|
|
|
|
|
message: msg,
|
|
|
|
|
title: Globalize.translate('HeaderTryMicrosoftEdge')
|
|
|
|
|
});
|
2015-10-18 16:23:48 -07:00
|
|
|
|
|
|
|
|
|
appStorage.setItem("ieswitchtoedge", expectedValue);
|
2015-10-17 09:29:42 -07:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pageClassOn('pageshow', "libraryPage", onPageShow);
|
|
|
|
|
pageClassOn('pageshow', "type-interior", onPageShow);
|
|
|
|
|
|
|
|
|
|
})();
|