From bb41d7694595a18dc9004691a2795ba91f3cbe29 Mon Sep 17 00:00:00 2001 From: franzz Date: Sun, 24 Jul 2016 22:44:01 +0200 Subject: [PATCH] also update bg image on cover image update --- script/ugc.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/script/ugc.js b/script/ugc.js index df0deea..71f5283 100755 --- a/script/ugc.js +++ b/script/ugc.js @@ -116,8 +116,9 @@ function Film(oSettings) .append($('
', {'class':'poster-container'}) .append($('', {'class':'poster', 'src':this.backgroundPoster()}) .click(function(){ - $This = $(this); - $This.attr('src', $This.attr('src')+'&data[force]=1'); + var $This = $(this); + var sForceLink = $This.attr('src')+'&data[force]=1'; + $This.add($This.parent().prev()).attr('src', sForceLink); }))) .append($('
', {'class':'info'}) .append($('

', {'class':'title'})