noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 223/323: Dashboard : Event hour is not mandat


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 223/323: Dashboard : Event hour is not mandatory
Date: Wed, 14 Mar 2018 17:38:53 -0400 (EDT)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 43a024d02081f8cd27bf3b22d7012d5067186a55
Author: Dany De Bontridder <address@hidden>
Date:   Mon Feb 19 09:37:25 2018 +0100

    Dashboard : Event hour is not mandatory
---
 html/js/gestion.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/html/js/gestion.js b/html/js/gestion.js
index 39a5a4f..47ab8f5 100644
--- a/html/js/gestion.js
+++ b/html/js/gestion.js
@@ -348,7 +348,8 @@ function action_save_short()
         var str_hour=new String($('action_add_frm')['hour_event'].value);
         str_hour=str_hour.trim();
         
-        if ( str_hour.search(/^[0-9]{2}:[0-9]{2}$/) == -1 &&
+        if ( str_hour.trim() != "" 
+             && str_hour.search(/^[0-9]{2}:[0-9]{2}$/) == -1 &&
              str_hour.search(/^[0-9]{2}.[0-9]{2}$/) == -1)
         {
             $('action_add_frm')['hour_event'].parentNode.className="notice";



reply via email to

[Prev in Thread] Current Thread [Next in Thread]