ajax_card : warning if there is no category of cards
This commit is contained in:
parent
e0451db986
commit
5fadaec8d5
1 changed files with 3 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue