ajax_card : warning if there is no category of cards

This commit is contained in:
Dany De Bontridder 2018-02-23 22:25:19 +01:00
parent e0451db986
commit 5fadaec8d5

View file

@ -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) {