1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

First level of ratings and reviews

This commit is contained in:
Eric Reed 2013-11-07 12:27:05 -05:00
parent 7614d695d9
commit 75b5f25694
7 changed files with 203 additions and 7 deletions

View file

@ -1120,7 +1120,25 @@ var Dashboard = {
parts.push(seconds);
return parts.join(':');
}
},
ratePackage: function(link) {
var id = link.getAttribute('data-id');
var name = link.getAttribute('data-name');
var rating = link.getAttribute('data-rating');
var dialog = new RatingDialog($.mobile.activePage);
dialog.show({ header: "Rate and review " + name, id: id, rating: rating, callback: function(review) {
console.log(review);
dialog.close();
ApiClient.createPackageReview(review).done(function() {
Dashboard.alert("Thank you for your review");
});
} });
}
};
if (!window.WebSocket) {