From 1c2a8a6969120eebb84ff953ed7ab1b8a533d051 Mon Sep 17 00:00:00 2001 From: rlx Date: Wed, 13 Jan 2016 14:14:07 +0530 Subject: [PATCH] update info element: clear cache --- static/js/info.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/static/js/info.js b/static/js/info.js index 10f2233..6262817 100644 --- a/static/js/info.js +++ b/static/js/info.js @@ -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(); $('') - .attr({src: '/' + id + '/cover128.jpg?' + data.modified}) + .attr({ + src: '/' + id + '/' + ui.icons + '128.jpg?' + + data.modified + }) .css({margin: '16px 0 8px 0'}) .appendTo(that); $('
')