Fixes problems with misalgined image previews.

This commit is contained in:
Lars Jung 2012-07-14 19:45:30 +02:00
parent 864687aedf
commit 2282a0ba71
3 changed files with 16 additions and 22 deletions

View file

@ -12,16 +12,16 @@ modulejs.define('parser/generic-json', ['_', '$', 'core/settings', 'model/entry'
parseJson = function (absHref, json) {
if (json.hasOwnProperty('customHeader')) {
if (_.has(json, 'customHeader')) {
settings.custom.header = json.customHeader;
}
if (json.hasOwnProperty('customFooter')) {
if (_.has(json, 'customFooter')) {
settings.custom.footer = json.customFooter;
}
if (json.hasOwnProperty('mode')) {
if (_.has(json, 'mode')) {
parser.mode = json.mode;
}
if (json.hasOwnProperty('server')) {
if (_.has(json, 'server')) {
parser.server = json.server;
}