noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 243/323: ajax_card : warning if there is no c


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 243/323: ajax_card : warning if there is no category of cards
Date: Wed, 14 Mar 2018 17:38:58 -0400 (EDT)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 5fadaec8d574bb226e142d5d98348f31e8de43e8
Author: Dany De Bontridder <address@hidden>
Date:   Fri Feb 23 22:25:19 2018 +0100

    ajax_card : warning if there is no category of cards
---
 html/js/card.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/html/js/card.js b/html/js/card.js
index 3ec38dd..6f6b6e7 100644
--- a/html/js/card.js
+++ b/html/js/card.js
@@ -609,7 +609,9 @@ function select_card_type(obj)
                                       // Get all the category, 
                                       var 
answer=req.responseXML.getElementsByTagName("fiche_cat_item");
                                       if (answer.length == 0) {
-                                          alert_box(req.responseText);
+                                          removeDiv(content);
+                                          remove_waiting_box();
+                                          
alert_box(getNodeText(req.responseXML.getElementsByTagName("code")[0]));
                                           return;
                                       }
                                       if ( answer.length == 1) {



reply via email to

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