pass modified to covers to avoid caching

This commit is contained in:
j 2015-03-07 20:16:59 +05:30
commit 557f4d3ea9
4 changed files with 9 additions and 8 deletions

View file

@ -30,13 +30,13 @@ oml.ui.info = function() {
id: id,
keys: [
'author', 'coverRatio',
'description', 'title'
'description', 'modified', 'title'
]
}, function(result) {
var data = result.data;
that.empty();
$('<img>')
.attr({src: '/' + id + '/cover128.jpg'})
.attr({src: '/' + id + '/cover128.jpg?' + data.modified})
.css({margin: '16px 0 8px 0'})
.appendTo(that);
$('<div>')
@ -69,4 +69,4 @@ oml.ui.info = function() {
return that.updateElement();
};
};