From d93f64c2e5578096665a601be49aeeb3d1f537cd Mon Sep 17 00:00:00 2001 From: Seth Call Date: Wed, 20 Jan 2016 05:37:13 -0600 Subject: [PATCH] * fix easy dropdown silliness --- .../assets/javascripts/accounts_profile.js | 2 +- .../accounts_profile_experience.js | 4 +-- web/app/assets/javascripts/profile_utils.js | 25 +++++++++++-------- 3 files changed, 17 insertions(+), 14 deletions(-) diff --git a/web/app/assets/javascripts/accounts_profile.js b/web/app/assets/javascripts/accounts_profile.js index dac12abc1..99b6581cf 100644 --- a/web/app/assets/javascripts/accounts_profile.js +++ b/web/app/assets/javascripts/accounts_profile.js @@ -250,7 +250,7 @@ selectLocation.load(userDetail.country, userDetail.state, userDetail.city) }); - context.JK.dropdown($('select')); + context.JK.dropdown($('select'), $screen); } function navToAccount() { diff --git a/web/app/assets/javascripts/accounts_profile_experience.js b/web/app/assets/javascripts/accounts_profile_experience.js index d3d62ac60..1f032cb5d 100644 --- a/web/app/assets/javascripts/accounts_profile_experience.js +++ b/web/app/assets/javascripts/accounts_profile_experience.js @@ -159,8 +159,8 @@ var userDetail = userDetailResponse[0]; populateAccountProfile(userDetail, instrumentsResponse[0]); }); - - context.JK.dropdown($('select')); + + context.JK.dropdown($('select'), $screen); } function navigateTo(targetLocation) { diff --git a/web/app/assets/javascripts/profile_utils.js b/web/app/assets/javascripts/profile_utils.js index 34c38bf9b..772f1c7f2 100644 --- a/web/app/assets/javascripts/profile_utils.js +++ b/web/app/assets/javascripts/profile_utils.js @@ -60,18 +60,21 @@ }; profileUtils.gigMap = { - "": "not specified", - "0": "under 10", - "1": "10 to 50", - "2": "50 to 100", - "3": "over 100" + "": "Not specified", + "0": "0", + "1": "under 10", + "2": "10 to 50", + "3": "50 to 100", + "4": "over 100" }; profileUtils.studioMap = { - "0": "under 10", - "1": "10 to 50", - "2": "50 to 100", - "3": "over 100" + "" : 'Not specified', + "0": "0", + "1": "under 10", + "2": "10 to 50", + "3": "50 to 100", + "4": "over 100" }; profileUtils.cowritingPurposeMap = { @@ -408,11 +411,11 @@ // concert gigs var concertCount = player.concert_count; - $concertCount.html(concertCount > 0 ? 'Has played ' + profileUtils.gigMap[concertCount] + ' live concert gigs' : NOT_SPECIFIED_TEXT); + $concertCount.html(concertCount > 0 ? 'Has played ' + profileUtils.gigMap[concertCount] + ' live concert gigs' : 0); // studio gigs var studioCount = player.studio_session_count; - $studioCount.html(studioCount > 0 ? 'Has played ' + profileUtils.gigMap[studioCount] + ' studio session gigs' : NOT_SPECIFIED_TEXT); + $studioCount.html(studioCount > 0 ? 'Has played ' + profileUtils.gigMap[studioCount] + ' studio session gigs' : 0); }// function renderMusicalExperience