pass modified to covers to avoid caching
This commit is contained in:
parent
6bdd789b26
commit
557f4d3ea9
4 changed files with 9 additions and 8 deletions
|
@ -48,7 +48,7 @@ oml.ui.browser = function() {
|
|||
id: data.id,
|
||||
info: info,
|
||||
title: data.title,
|
||||
url: '/' + data.id + '/' + ui.icons + '128.jpg',
|
||||
url: '/' + data.id + '/' + ui.icons + '128.jpg?' + data.modified,
|
||||
width: width
|
||||
};
|
||||
},
|
||||
|
@ -58,7 +58,7 @@ oml.ui.browser = function() {
|
|||
}), callback);
|
||||
},
|
||||
keys: [
|
||||
'author', 'coverRatio', 'extension', 'id', 'mediastate',
|
||||
'author', 'coverRatio', 'extension', 'id', 'mediastate', 'modified',
|
||||
'previewRatio', 'size', 'textsize', 'title'
|
||||
],
|
||||
max: 1,
|
||||
|
|
|
@ -48,7 +48,7 @@ oml.ui.gridView = function() {
|
|||
id: data.id,
|
||||
info: info,
|
||||
title: data.title,
|
||||
url: '/' + data.id + '/' + ui.icons + '128.jpg',
|
||||
url: '/' + data.id + '/' + ui.icons + '128.jpg?' + data.modified,
|
||||
width: width
|
||||
};
|
||||
},
|
||||
|
@ -58,7 +58,7 @@ oml.ui.gridView = function() {
|
|||
}), callback);
|
||||
},
|
||||
keys: [
|
||||
'author', 'coverRatio', 'extension', 'id', 'mediastate',
|
||||
'author', 'coverRatio', 'extension', 'id', 'mediastate', 'modified',
|
||||
'previewRatio', 'size', 'textsize', 'title'
|
||||
],
|
||||
selected: ui.listSelection,
|
||||
|
|
|
@ -240,6 +240,7 @@ oml.ui.identifyDialog = function(data) {
|
|||
that.close();
|
||||
Ox.Request.clearCache('find');
|
||||
oml.$ui.browser.reloadList(true);
|
||||
oml.$ui.list.reloadList(true);
|
||||
Ox.Request.clearCache(data.id);
|
||||
oml.$ui.infoView.updateElement(data.id);
|
||||
});
|
||||
|
|
|
@ -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>')
|
||||
|
|
Loading…
Reference in a new issue