update info element: clear cache

This commit is contained in:
rlx 2016-01-13 14:14:07 +05:30
parent 1d8c9eaf12
commit 1c2a8a6969
1 changed files with 5 additions and 1 deletions

View File

@ -25,6 +25,7 @@ oml.ui.info = function() {
that.updateElement = function() {
var id = ui.item || ui.listSelection[0];
Ox.Request.clearCache('get');
if (id) {
oml.api.get({
id: id,
@ -36,7 +37,10 @@ oml.ui.info = function() {
var data = result.data;
that.empty();
$('<img>')
.attr({src: '/' + id + '/cover128.jpg?' + data.modified})
.attr({
src: '/' + id + '/' + ui.icons + '128.jpg?'
+ data.modified
})
.css({margin: '16px 0 8px 0'})
.appendTo(that);
$('<div>')