reset version number when not specified - again bug oc-1433

This commit is contained in:
Alessandro Cosentino 2012-08-04 13:08:55 -04:00
parent da4057ecfd
commit 226af11f33
1 changed files with 5 additions and 1 deletions

View File

@ -20,7 +20,11 @@ $(document).ready(function(){
$('#rightcontent p.license').show();
$('#rightcontent span.name').text(app.name);
$('#rightcontent small.externalapp').text(app.internallabel);
$('#rightcontent span.version').text(app.version);
if (app.version) {
$('#rightcontent span.version').text(app.version);
} else {
$('#rightcontent span.version').text('');
}
$('#rightcontent p.description').text(app.description);
$('#rightcontent img.preview').attr('src',app.preview);
$('#rightcontent small.externalapp').attr('style','visibility:visible');