update info element: clear cache
This commit is contained in:
parent
1d8c9eaf12
commit
1c2a8a6969
1 changed files with 5 additions and 1 deletions
|
@ -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>')
|
||||
|
|
Loading…
Reference in a new issue