pass modified to covers to avoid caching

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

View file

@ -48,7 +48,7 @@ oml.ui.browser = function() {
id: data.id, id: data.id,
info: info, info: info,
title: data.title, title: data.title,
url: '/' + data.id + '/' + ui.icons + '128.jpg', url: '/' + data.id + '/' + ui.icons + '128.jpg?' + data.modified,
width: width width: width
}; };
}, },
@ -58,7 +58,7 @@ oml.ui.browser = function() {
}), callback); }), callback);
}, },
keys: [ keys: [
'author', 'coverRatio', 'extension', 'id', 'mediastate', 'author', 'coverRatio', 'extension', 'id', 'mediastate', 'modified',
'previewRatio', 'size', 'textsize', 'title' 'previewRatio', 'size', 'textsize', 'title'
], ],
max: 1, max: 1,
@ -119,4 +119,4 @@ oml.ui.browser = function() {
return that; return that;
}; };

View file

@ -48,7 +48,7 @@ oml.ui.gridView = function() {
id: data.id, id: data.id,
info: info, info: info,
title: data.title, title: data.title,
url: '/' + data.id + '/' + ui.icons + '128.jpg', url: '/' + data.id + '/' + ui.icons + '128.jpg?' + data.modified,
width: width width: width
}; };
}, },
@ -58,7 +58,7 @@ oml.ui.gridView = function() {
}), callback); }), callback);
}, },
keys: [ keys: [
'author', 'coverRatio', 'extension', 'id', 'mediastate', 'author', 'coverRatio', 'extension', 'id', 'mediastate', 'modified',
'previewRatio', 'size', 'textsize', 'title' 'previewRatio', 'size', 'textsize', 'title'
], ],
selected: ui.listSelection, selected: ui.listSelection,

View file

@ -240,6 +240,7 @@ oml.ui.identifyDialog = function(data) {
that.close(); that.close();
Ox.Request.clearCache('find'); Ox.Request.clearCache('find');
oml.$ui.browser.reloadList(true); oml.$ui.browser.reloadList(true);
oml.$ui.list.reloadList(true);
Ox.Request.clearCache(data.id); Ox.Request.clearCache(data.id);
oml.$ui.infoView.updateElement(data.id); oml.$ui.infoView.updateElement(data.id);
}); });

View file

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