Disbale message if empty

This commit is contained in:
Romain Neutron
2013-01-21 20:53:55 +01:00
parent 0e44f7b581
commit a9e8469ed9

View File

@@ -409,7 +409,7 @@ function manageSession(data, showMessages)
}
}
}
if(data.message !== false)
if('' !== $.trim(data.message))
{
if($('#MESSAGE').length === 0)
$('body').append('<div id="#MESSAGE"></div>');