use list/text.modified on home page
This commit is contained in:
parent
96ad166cb1
commit
0796f15d9e
2 changed files with 6 additions and 6 deletions
|
@ -301,7 +301,7 @@ pandora.ui.home = function() {
|
||||||
conditions: [{key: 'status', value: 'featured', operator: '=='}],
|
conditions: [{key: 'status', value: 'featured', operator: '=='}],
|
||||||
operator: '&'
|
operator: '&'
|
||||||
},
|
},
|
||||||
keys: ['user', 'name', 'description'],
|
keys: ['description', 'modified', 'name', 'user'],
|
||||||
sort: [{key: 'position', operator: '+'}]
|
sort: [{key: 'position', operator: '+'}]
|
||||||
},
|
},
|
||||||
items, lists, texts;
|
items, lists, texts;
|
||||||
|
@ -583,7 +583,7 @@ pandora.ui.home = function() {
|
||||||
|
|
||||||
function getImageURL(item) {
|
function getImageURL(item) {
|
||||||
return '/' + item.type + '/' + item.user
|
return '/' + item.type + '/' + item.user
|
||||||
+ ':' + item.name + '/icon256.jpg';
|
+ ':' + item.name + '/icon256.jpg?' + item.modified;
|
||||||
}
|
}
|
||||||
|
|
||||||
function getTooltip(item) {
|
function getTooltip(item) {
|
||||||
|
|
|
@ -259,7 +259,7 @@ pandora.ui.home = function() {
|
||||||
conditions: [{key: 'status', value: 'featured', operator: '=='}],
|
conditions: [{key: 'status', value: 'featured', operator: '=='}],
|
||||||
operator: '&'
|
operator: '&'
|
||||||
},
|
},
|
||||||
keys: ['user', 'name', 'description'],
|
keys: ['user', 'name', 'description', 'modified'],
|
||||||
sort: [{key: 'position', operator: '+'}]
|
sort: [{key: 'position', operator: '+'}]
|
||||||
}, function(result) {
|
}, function(result) {
|
||||||
var lists = result.data.items,
|
var lists = result.data.items,
|
||||||
|
@ -317,7 +317,7 @@ pandora.ui.home = function() {
|
||||||
})
|
})
|
||||||
.attr({
|
.attr({
|
||||||
src: '/list/' + lists[selected].user + ':'
|
src: '/list/' + lists[selected].user + ':'
|
||||||
+ lists[selected].name + '/icon256.jpg'
|
+ lists[selected].name + '/icon256.jpg?' + lists[selected].modified
|
||||||
})
|
})
|
||||||
.css({
|
.css({
|
||||||
position: 'absolute',
|
position: 'absolute',
|
||||||
|
@ -478,7 +478,7 @@ pandora.ui.home = function() {
|
||||||
})
|
})
|
||||||
.attr({
|
.attr({
|
||||||
src: '/list/' + list.user + ':'
|
src: '/list/' + list.user + ':'
|
||||||
+ list.name + '/icon256.jpg'
|
+ list.name + '/icon256.jpg?' + list.modified
|
||||||
})
|
})
|
||||||
.css({
|
.css({
|
||||||
width: '57px',
|
width: '57px',
|
||||||
|
@ -571,7 +571,7 @@ pandora.ui.home = function() {
|
||||||
}
|
}
|
||||||
$icon.attr({
|
$icon.attr({
|
||||||
src: '/list/' + lists[selected].user + ':'
|
src: '/list/' + lists[selected].user + ':'
|
||||||
+ lists[selected].name + '/icon256.jpg'
|
+ lists[selected].name + '/icon256.jpg?' + lists[selected].modified
|
||||||
});
|
});
|
||||||
$text.html(
|
$text.html(
|
||||||
'<b>' + Ox.encodeHTMLEntities(lists[selected].name) + '</b><br><br>'
|
'<b>' + Ox.encodeHTMLEntities(lists[selected].name) + '</b><br><br>'
|
||||||
|
|
Loading…
Reference in a new issue