From cbc59895cc55c7b9b5689f5be55d88e095f8cd85 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Fri, 5 Apr 2013 11:27:37 -0400 Subject: [PATCH] use new userdata format --- dashboard-ui/scripts/boxset.js | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/dashboard-ui/scripts/boxset.js b/dashboard-ui/scripts/boxset.js index 01a880e568..dff4a1ff6a 100644 --- a/dashboard-ui/scripts/boxset.js +++ b/dashboard-ui/scripts/boxset.js @@ -256,27 +256,20 @@ var userData = item.UserData || {}; if (typeof userData.Likes == "undefined") { - html += '
Dislike
'; - html += '
Like
'; + html += 'Dislike'; + html += 'Like'; } else if (userData.Likes) { - html += '
Dislike
'; - html += '
Liked
'; + html += 'Dislike'; + html += 'Liked'; } else { - html += '
Dislike
'; - html += '
Like
'; + html += 'Dislike'; + html += 'Like'; } if (userData.IsFavorite) { - html += '
Favorite
'; + html += 'Favorite'; } else { - html += '
Favorite
'; - } - - //played/unplayed - if (userData.Played) { - html += '
Played
'; - } else { - html += '
Unplayed
'; + html += 'Favorite'; } $('#itemRatings', page).html(html);