You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
549 B
HTML
21 lines
549 B
HTML
(function () {
|
|
|
|
function logError(details) {
|
|
|
|
$('#formulaire_client_logger')
|
|
.find('input[name="nav"]')
|
|
.attr('value', navigator.userAgent)
|
|
.parents('form')
|
|
.find('input[name="err_msg"]')
|
|
.attr('value', details)
|
|
.parents('form')
|
|
.ajaxSubmit();
|
|
}
|
|
|
|
window.onerror = function(message, file, line) {
|
|
file = file.replace('#URL_SITE_SPIP', '');
|
|
logError('/ fichier : ' + file + ' / ligne : ' + line + ' / message : ' + message);
|
|
};
|
|
|
|
})();
|