From 9abaedc7c5e94121660dd3a4fefd446ba7055c92 Mon Sep 17 00:00:00 2001 From: pollockjj Date: Sat, 29 Nov 2014 13:17:54 -0600 Subject: [PATCH] Modified two-line solution for ticket #4261 to one-line based on feedback/solution from B. Barringer --- views/options/profile.jade | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/views/options/profile.jade b/views/options/profile.jade index d3d8bd9fce..5774a80d7d 100644 --- a/views/options/profile.jade +++ b/views/options/profile.jade @@ -250,8 +250,7 @@ mixin backgrounds(mobile) //-button.btn.btn-xs(ng-hide="ownsSet('background',Content.backgrounds['#{k}'])",ng-click="unlock(setKeys('background',Content.backgrounds['#{k}']))")!= env.t('unlockSet',{cost:15}) + ' ' button.btn.btn-xs(ng-hide="ownsSet('background',#{JSON.stringify(bgs)})",ng-click="unlock(setKeys('background',#{JSON.stringify(bgs)}))")!= env.t('unlockSet',{cost:15}) + ' ' each bg,k in bgs - button.customize-option(type='button',class='background_#{k}',ng-click='unlock("background.#{k}")',popover-title=bg.text(),popover=bg.notes(),popover-trigger='mouseenter').background-unlocked(ng-if='user.purchased.background.#{k}') - button.customize-option(type='button',class='background_#{k}',ng-click='unlock("background.#{k}")',popover-title=bg.text(),popover=bg.notes(),popover-trigger='mouseenter').background-locked(ng-if='!user.purchased.background.#{k}') + button.customize-option(type='button',class='background_#{k}',ng-class="user.purchased.background.#{k} ? 'background-unlocked' : 'background-locked'", ng-click='unlock("background.#{k}")',popover-title=bg.text(),popover=bg.notes(),popover-trigger='mouseenter') - } script(type='text/ng-template', id='partials/options.profile.backgrounds.html')