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