From 6b5a299f769791661437a4f1332c3448d6010d0f Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Fri, 14 Nov 2008 16:55:09 +0000 Subject: [PATCH] - LSdebug() : alert() dans IE - getFData() : Correction d'un bug IE --- trunk/includes/js/functions.js | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/trunk/includes/js/functions.js b/trunk/includes/js/functions.js index fa6acfeb..6d7e851d 100644 --- a/trunk/includes/js/functions.js +++ b/trunk/includes/js/functions.js @@ -2,10 +2,15 @@ var LSdebug_active = 0; function LSdebug(arguments) { if (LSdebug_active != 1) return; - if (typeof console != 'undefined') + if (typeof console != 'undefined') { console.log(arguments); - if (typeof opera != 'undefined') + return true; + } + if (typeof opera != 'undefined') { opera.postError(arguments); + return true; + } + alert(arguments); } /** @@ -73,11 +78,12 @@ function getFData(format,data,meth) { val=data[meth](ch[2]); } catch(e) { + LSdebug('getFData() : '+meth+'() -> rater'); return; } - if($type(ch[4])) { - if ($type(ch[6])) { + if($type(ch[4])&&ch[4]!="") { + if ($type(ch[6])&&ch[6]!="") { var s=ch[4]; var l=ch[6]; }