mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-13 13:01:27 +01:00
Fix: iWebKit is compatible with Android and Blackberry
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
var iWebkit;
|
||||
|
||||
if (!iWebkit) {
|
||||
|
||||
iWebkit = window.onload = function () {
|
||||
function fullscreen() {
|
||||
var a = document.getElementsByTagName("a");
|
||||
for (var i = 0; i < a.length;i++) {
|
||||
if (a[i].className.match("noeffect")) {
|
||||
}
|
||||
else {
|
||||
a[i].onclick = function () {
|
||||
window.location = this.getAttribute("href");
|
||||
return false;
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function hideURLbar() {
|
||||
window.scrollTo(0, 0.9);
|
||||
}
|
||||
iWebkit.init = function () {
|
||||
fullscreen();
|
||||
hideURLbar();
|
||||
};
|
||||
iWebkit.init();
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user