From 0796f15d9e23be3065686f13170b40890fbfdabe Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Fri, 10 May 2013 15:01:59 +0000 Subject: [PATCH] use list/text.modified on home page --- static/js/pandora/home.indiancinema.js | 4 ++-- static/js/pandora/home.padma.js | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/static/js/pandora/home.indiancinema.js b/static/js/pandora/home.indiancinema.js index 6bcafa050..28f9aa516 100644 --- a/static/js/pandora/home.indiancinema.js +++ b/static/js/pandora/home.indiancinema.js @@ -301,7 +301,7 @@ pandora.ui.home = function() { conditions: [{key: 'status', value: 'featured', operator: '=='}], operator: '&' }, - keys: ['user', 'name', 'description'], + keys: ['description', 'modified', 'name', 'user'], sort: [{key: 'position', operator: '+'}] }, items, lists, texts; @@ -583,7 +583,7 @@ pandora.ui.home = function() { function getImageURL(item) { return '/' + item.type + '/' + item.user - + ':' + item.name + '/icon256.jpg'; + + ':' + item.name + '/icon256.jpg?' + item.modified; } function getTooltip(item) { diff --git a/static/js/pandora/home.padma.js b/static/js/pandora/home.padma.js index f19aa1f79..97a58da85 100644 --- a/static/js/pandora/home.padma.js +++ b/static/js/pandora/home.padma.js @@ -259,7 +259,7 @@ pandora.ui.home = function() { conditions: [{key: 'status', value: 'featured', operator: '=='}], operator: '&' }, - keys: ['user', 'name', 'description'], + keys: ['user', 'name', 'description', 'modified'], sort: [{key: 'position', operator: '+'}] }, function(result) { var lists = result.data.items, @@ -317,7 +317,7 @@ pandora.ui.home = function() { }) .attr({ src: '/list/' + lists[selected].user + ':' - + lists[selected].name + '/icon256.jpg' + + lists[selected].name + '/icon256.jpg?' + lists[selected].modified }) .css({ position: 'absolute', @@ -478,7 +478,7 @@ pandora.ui.home = function() { }) .attr({ src: '/list/' + list.user + ':' - + list.name + '/icon256.jpg' + + list.name + '/icon256.jpg?' + list.modified }) .css({ width: '57px', @@ -571,7 +571,7 @@ pandora.ui.home = function() { } $icon.attr({ src: '/list/' + lists[selected].user + ':' - + lists[selected].name + '/icon256.jpg' + + lists[selected].name + '/icon256.jpg?' + lists[selected].modified }); $text.html( '' + Ox.encodeHTMLEntities(lists[selected].name) + '

'