image refresher

This commit is contained in:
2016-04-17 01:38:55 +02:00
parent 9d7e64ce22
commit 4a6a372fab
6 changed files with 20 additions and 8 deletions

View File

@@ -103,7 +103,12 @@ function Film(oSettings)
this._anchor = $('<div>', {'class':'film', 'id':'film_'+this.id()})
.data('id', this.id())
.append($('<img>', {'class':'bg', 'src':this.backgroundPoster()}))
.append($('<div>', {'class':'poster-container'}).append($('<img>', {'class':'poster', 'src':this.backgroundPoster()})))
.append($('<div>', {'class':'poster-container'})
.append($('<img>', {'class':'poster', 'src':this.backgroundPoster()})
.click(function(){
$This = $(this);
$This.attr('src', $This.attr('src')+'&data[force]=1');
})))
.append($('<div>', {'class':'info'})
.append($('<p>', {'class':'title'})
.append($('<a>', {'class':'name', 'target':'_blank', 'href':this.consts.ugc_url+'film.html?id='+this.id()})