forked from extern/egroupware
switching off Javascript error-handler and -display in GUI
This commit is contained in:
parent
1a3c6985e4
commit
81f68e09d6
@ -42,11 +42,13 @@ egw.extend('debug', egw.MODULE_GLOBAL, function(_app, _wnd) {
|
||||
var DEBUGLEVEL = 3;
|
||||
|
||||
/**
|
||||
* Log-level for local storage
|
||||
* Log-level for local storage and error-display in GUI
|
||||
*
|
||||
* @type Number
|
||||
* 0 = off, no logging AND no global error-handler bound
|
||||
* 1 = ... see above
|
||||
*/
|
||||
var LOCAL_LOG_LEVEL = 2;
|
||||
var LOCAL_LOG_LEVEL = 0;
|
||||
/**
|
||||
* Number of log-entries stored on client, new errors overwrite old ones
|
||||
*
|
||||
@ -280,7 +282,9 @@ egw.extend('debug', egw.MODULE_GLOBAL, function(_app, _wnd) {
|
||||
}
|
||||
}
|
||||
|
||||
// bind to global error handler
|
||||
// bind to global error handler, only if LOCAL_LOG_LEVEL > 0
|
||||
if (LOCAL_LOG_LEVEL)
|
||||
{
|
||||
jQuery(_wnd).on('error', function(e)
|
||||
{
|
||||
// originalEvent does NOT always exist in IE
|
||||
@ -302,6 +306,7 @@ egw.extend('debug', egw.MODULE_GLOBAL, function(_app, _wnd) {
|
||||
}
|
||||
throw event.message;
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* The debug function can be used to send a debug message to the
|
||||
|
Loading…
Reference in New Issue
Block a user