add end user message when he tries to add element when no active basket

This commit is contained in:
Nicolas Le Goff
2012-06-26 11:44:17 +02:00
parent d3007d1f40
commit 496dd063c9
2 changed files with 4 additions and 2 deletions

View File

@@ -587,9 +587,10 @@ var p4 = p4 || {};
'addElementToBasket': function(sbas_id, record_id, event , singleSelection) {
singleSelection = !!singleSelection || false;
if($('#baskets .SSTT.active').length == 1)
{
if($('#baskets .SSTT.active').length == 1) {
return dropOnBask(event, $('#IMGT_'+ sbas_id +'_'+ record_id), $('#baskets .SSTT.active'), singleSelection);
} else {
humane.info(language.noActiveBasket);
}
},
'reloadCurrent':function(){