mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-24 22:21:34 +01:00
"fixed Bug - notification now works under IE7"
This commit is contained in:
parent
a5a7c2d30e
commit
443ef39008
@ -25,14 +25,17 @@ function notificationwindow_refresh() {
|
|||||||
function notificationwindow_display() {
|
function notificationwindow_display() {
|
||||||
var notificationwindow;
|
var notificationwindow;
|
||||||
var notificationwindow_message;
|
var notificationwindow_message;
|
||||||
|
var Browserwidth;
|
||||||
|
var Browserheight;
|
||||||
notificationwindow = document.getElementById("notificationwindow");
|
notificationwindow = document.getElementById("notificationwindow");
|
||||||
notificationwindow_message = document.getElementById("notificationwindow_message");
|
notificationwindow_message = document.getElementById("notificationwindow_message");
|
||||||
notificationwindow_ok_button = document.getElementById("notificationwindow_ok_button");
|
|
||||||
notificationwindow.style.display = "inline";
|
notificationwindow.style.display = "inline";
|
||||||
notificationwindow.style.position = "absolute";
|
notificationwindow.style.position = "absolute";
|
||||||
notificationwindow.style.width = "500px";
|
notificationwindow.style.width = "500px";
|
||||||
notificationwindow.style.left = screen.availWidth/2 - 250 + "px";
|
Browserwidth = (window.innerWidth || document.body.clientWidth || 640)
|
||||||
notificationwindow.style.top = screen.availHeight/4 + "px";
|
Browserheight = (window.innerHeight || document.body.clientHeight || 480)
|
||||||
|
notificationwindow.style.left = (Browserwidth/2 - 250) + "px";
|
||||||
|
notificationwindow.style.top = (Browserheight/4) + "px";
|
||||||
notificationwindow.style.height = "100%";
|
notificationwindow.style.height = "100%";
|
||||||
notificationwindow_message.innerHTML = notifymessages[0];
|
notificationwindow_message.innerHTML = notifymessages[0];
|
||||||
if(notifymessages.length-1 > 0 ) {
|
if(notifymessages.length-1 > 0 ) {
|
||||||
@ -40,6 +43,7 @@ function notificationwindow_display() {
|
|||||||
} else {
|
} else {
|
||||||
notificationwindow_ok_button.value = "OK";
|
notificationwindow_ok_button.value = "OK";
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function notificationbell_switch(mode) {
|
function notificationbell_switch(mode) {
|
||||||
|
Loading…
Reference in New Issue
Block a user