-
Notifications
You must be signed in to change notification settings - Fork 246
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release/v8.3.0' into feature/pivot-calculated-items
- Loading branch information
Showing
1,571 changed files
with
162,303 additions
and
18,642 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
const isIE = /msie|trident/i.test(navigator.userAgent); | ||
|
||
var checkLocalStorage = (function () { | ||
try { | ||
var storage = window['localStorage']; | ||
return true; | ||
} | ||
catch(e) { | ||
return false; | ||
} | ||
})(); | ||
|
||
if (!window.lang) { | ||
window.lang = (/(?:&|^)lang=([^&]+)&?/i).exec(window.location.search.substring(1)); | ||
window.lang = window.lang ? window.lang[1] : ''; | ||
} | ||
window.lang && (window.lang = window.lang.split(/[\-\_]/)[0].toLowerCase()); | ||
|
||
var isLangRtl = function (lang) { | ||
return lang.lastIndexOf('ar', 0) === 0 || lang.lastIndexOf('he', 0) === 0; | ||
} | ||
|
||
var ui_rtl = false; | ||
if ( window.nativeprocvars && window.nativeprocvars.rtl !== undefined ) { | ||
ui_rtl = window.nativeprocvars.rtl; | ||
} else { | ||
if ( isLangRtl(lang) ) | ||
if ( checkLocalStorage && localStorage.getItem("ui-rtl") !== null ) | ||
ui_rtl = localStorage.getItem("ui-rtl") === '1'; | ||
else ui_rtl = true; | ||
} | ||
|
||
if ( ui_rtl && !isIE ) { | ||
document.body.setAttribute('dir', 'rtl'); | ||
document.body.classList.add('rtl'); | ||
} | ||
if ( isLangRtl(lang) ) { | ||
document.body.classList.add('rtl-font'); | ||
} | ||
document.body.setAttribute('applang', lang); | ||
|
||
window.isrtl = window.getComputedStyle(document.body).direction === 'rtl'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.