Bug when adding a empty note

This commit is contained in:
Dany De Bontridder 2016-02-08 00:47:19 +01:00
parent 39efc6e919
commit 3b9ce4ce2c
2 changed files with 29 additions and 8 deletions

View file

@ -133,6 +133,10 @@ function todo_list_save(p_form)
var rec = req.responseText;
alert_box('erreur :' + rec);
}
if ( getNodeText(tl_id[0]) == '0') {
smoke.alert('Note est vide');
return;
}
var tr = $('tr'+p_form);
if ( p_form == 0)
{