From b1f3f3a16f32e7dfe4e748cfb870ecbd0ed0a6bc Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Wed, 17 Nov 2010 15:52:37 +0100 Subject: [PATCH] LSform : Added display of errors of elements not displayed on the LSform warnBox --- public_html/includes/js/LSform.js | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/public_html/includes/js/LSform.js b/public_html/includes/js/LSform.js index 6f48f3ce..a25edfe8 100644 --- a/public_html/includes/js/LSform.js +++ b/public_html/includes/js/LSform.js @@ -27,14 +27,15 @@ var LSform = new Class({ this.params={}; } this._ajaxSubmit=this.params.ajaxSubmit; + + this.warnBox = new LSinfosBox({ + name: 'LSformWarnBox', + fxDuration: 600, + closeBtn: 1, + autoClose: 0 + }); + if ($type(this.params.warnings)) { - this.warnBox = new LSinfosBox({ - name: 'LSformWarnBox', - fxDuration: 600, - closeBtn: 1, - autoClose: 0 - }); - this.warnTxt = '