added error handling to image tag generation

This commit is contained in:
Luke Pulverenti 2013-07-05 20:19:44 -04:00
parent 8062c8c011
commit a6ae6b7c2d
5 changed files with 50 additions and 26 deletions

View file

@ -168,7 +168,7 @@
var color = pkg.tileColor || "#2572EB";
var img = pkg.previewImage ? pkg.previewImage : pkg.thumbImage;
$('#pPreviewImage', page).show().html("<img src='" + img + "' style='max-width: 100%;border-radius:10px;-moz-box-shadow: 0 0 20px 3px " + color + ";-webkit-box-shadow: 0 0 20px 3px " + color + ";box-shadow: 0 0 20px 3px " + color + ";' />");
$('#pPreviewImage', page).show().html("<img src='" + img + "' style='max-width: 100%;-moz-box-shadow: 0 0 20px 3px " + color + ";-webkit-box-shadow: 0 0 20px 3px " + color + ";box-shadow: 0 0 20px 3px " + color + ";' />");
} else {
$('#pPreviewImage', page).hide().html("");
}