mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-15 01:32:40 +02:00
* workaround for Fennec bug https://bugzilla.mozilla.org/show_bug.cgi?format=multiple&id=648250 window.(outerHeight|outerWidth|screenX|screenY) throw exception
This commit is contained in:
@ -39,6 +39,25 @@ else if (document.layers)
|
|||||||
is_ns4 = true;
|
is_ns4 = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//console.log('is_ie='+is_ie+', is_ie5='+is_ie5+', is_mozilla='+is_mozilla+', is_moz1_6='+is_moz1_6+', is_ns4='+is_ns4);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Check whether the console object is defined - if not, define one
|
||||||
|
*/
|
||||||
|
if (typeof window.console == 'undefined')
|
||||||
|
{
|
||||||
|
window.console = {
|
||||||
|
'log': function() {
|
||||||
|
},
|
||||||
|
'warn': function() {
|
||||||
|
},
|
||||||
|
'error': function() {
|
||||||
|
},
|
||||||
|
'info': function() {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function egw_set_checkbox_multiselect_enabled(_id, _enabled)
|
function egw_set_checkbox_multiselect_enabled(_id, _enabled)
|
||||||
{
|
{
|
||||||
//Retrieve the checkbox_multiselect base div
|
//Retrieve the checkbox_multiselect base div
|
||||||
@ -111,7 +130,8 @@ function egw_openWindowCentered(_url, _windowName, _width, _height)
|
|||||||
// return the left position of the window
|
// return the left position of the window
|
||||||
function egw_getWindowLeft()
|
function egw_getWindowLeft()
|
||||||
{
|
{
|
||||||
if(is_mozilla)
|
// workaround for https://bugzilla.mozilla.org/show_bug.cgi?format=multiple&id=648250 window.(outerHeight|outerWidth|screenX|screenY) throw exception
|
||||||
|
if(is_mozilla && navigator.userAgent.toLowerCase().indexOf('fennec') == -1)
|
||||||
{
|
{
|
||||||
return window.screenX;
|
return window.screenX;
|
||||||
}
|
}
|
||||||
@ -124,7 +144,8 @@ function egw_getWindowLeft()
|
|||||||
// return the left position of the window
|
// return the left position of the window
|
||||||
function egw_getWindowTop()
|
function egw_getWindowTop()
|
||||||
{
|
{
|
||||||
if(is_mozilla)
|
// workaround for https://bugzilla.mozilla.org/show_bug.cgi?format=multiple&id=648250 window.(outerHeight|outerWidth|screenX|screenY) throw exception
|
||||||
|
if(is_mozilla && navigator.userAgent.toLowerCase().indexOf('fennec') == -1)
|
||||||
{
|
{
|
||||||
return window.screenY;
|
return window.screenY;
|
||||||
}
|
}
|
||||||
@ -170,7 +191,8 @@ function egw_getWindowInnerHeight()
|
|||||||
// get the outerWidth of the browser window. For IE we simply return the innerWidth
|
// get the outerWidth of the browser window. For IE we simply return the innerWidth
|
||||||
function egw_getWindowOuterWidth()
|
function egw_getWindowOuterWidth()
|
||||||
{
|
{
|
||||||
if (is_mozilla)
|
// workaround for https://bugzilla.mozilla.org/show_bug.cgi?format=multiple&id=648250 window.(outerHeight|outerWidth|screenX|screenY) throw exception
|
||||||
|
if (is_mozilla && navigator.userAgent.toLowerCase().indexOf('fennec') == -1)
|
||||||
{
|
{
|
||||||
return window.outerWidth;
|
return window.outerWidth;
|
||||||
}
|
}
|
||||||
@ -183,7 +205,8 @@ function egw_getWindowOuterWidth()
|
|||||||
// get the outerHeight of the browser window. For IE we simply return the innerHeight
|
// get the outerHeight of the browser window. For IE we simply return the innerHeight
|
||||||
function egw_getWindowOuterHeight()
|
function egw_getWindowOuterHeight()
|
||||||
{
|
{
|
||||||
if (is_mozilla)
|
// workaround for https://bugzilla.mozilla.org/show_bug.cgi?format=multiple&id=648250 window.(outerHeight|outerWidth|screenX|screenY) throw exception
|
||||||
|
if (is_mozilla && navigator.userAgent.toLowerCase().indexOf('fennec') == -1)
|
||||||
{
|
{
|
||||||
return window.outerHeight;
|
return window.outerHeight;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user