diff --git a/dashboard-ui/css/site.css b/dashboard-ui/css/site.css
index 5fe9422102..a0537c4682 100644
--- a/dashboard-ui/css/site.css
+++ b/dashboard-ui/css/site.css
@@ -701,15 +701,21 @@ progress {
background-position: right center;
}
+.userItemRating {
+ height: 24px;
+ width: 24px;
+ margin-right: 1em;
+ overflow: hidden;
+ display: inline-block;
+}
.imgUserItemRating {
height: 24px;
- margin-right: 1em;
cursor: pointer;
}
- .imgUserItemRating:hover {
- opacity: .5;
- }
+.imgUserItemRating:hover {
+ opacity: .5;
+}
@media all and (min-width: 650px) {
.itemImageBlock {
diff --git a/dashboard-ui/scripts/Itemdetailpage.js b/dashboard-ui/scripts/Itemdetailpage.js
index f882b73080..0e515a4851 100644
--- a/dashboard-ui/scripts/Itemdetailpage.js
+++ b/dashboard-ui/scripts/Itemdetailpage.js
@@ -722,22 +722,29 @@
var userData = item.UserData || {};
if (typeof userData.Likes == "undefined") {
- html += '
';
- html += '
';
+ html += '
';
+ html += '';
} else if (userData.Likes) {
- html += '
';
- html += '
';
+ html += '';
+ html += '';
} else {
- html += '
';
- html += '
';
+ html += '';
+ html += '';
}
if (userData.IsFavorite) {
- html += '
';
+ html += '';
} else {
- html += '
';
+ html += '';
}
+ //played/unplayed
+ if (userData.Played) {
+ html += '';
+ } else {
+ html += '';
+ }
+
$('#itemRatings', page).html(html);
},
@@ -790,7 +797,20 @@
ApiClient.updateUserItemRating(Dashboard.getCurrentUserId(), item.Id, false);
ItemDetailPage.renderFav(item);
- }
+ },
+
+ setPlayed: function () {
+ var item = ItemDetailPage.item;
+
+ item.UserData = item.UserData || {};
+
+ var setting = !item.UserData.Played;
+ item.UserData.Played = setting;
+
+ ApiClient.updatePlayedStatus(Dashboard.getCurrentUserId(), item.Id, setting);
+
+ ItemDetailPage.renderFav(item);
+ }
};
diff --git a/dashboard-ui/scripts/mediaplayer.js b/dashboard-ui/scripts/mediaplayer.js
index 5f78e10fbd..2a2a7a1632 100644
--- a/dashboard-ui/scripts/mediaplayer.js
+++ b/dashboard-ui/scripts/mediaplayer.js
@@ -114,7 +114,7 @@
}
html += "";
- html += '' + name + '
' + series_name + '
';
+ html += '' + series_name + '
' + name + '
';
$('#mediaInfo', nowPlayingBar).html(html);
},