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

trim jquery mobile

This commit is contained in:
Luke Pulverenti 2015-11-27 12:46:58 -05:00
parent 316fce063a
commit 301fd258bb
35 changed files with 359 additions and 661 deletions

View file

@ -1945,31 +1945,31 @@
});
}
$(document).on('pageinit', "#itemDetailPage", function () {
pageIdOn('pageinit', "itemDetailPage", function() {
var page = this;
$('.btnPlay', page).on('click', function () {
$('.btnPlay', page).on('click', function() {
playCurrentItem(this);
});
$('.btnPlayTrailer', page).on('click', function () {
$('.btnPlayTrailer', page).on('click', function() {
playTrailer(page);
});
$('.btnSplitVersions', page).on('click', function () {
$('.btnSplitVersions', page).on('click', function() {
splitVersions(page);
});
$('.btnSync', page).on('click', function () {
$('.btnSync', page).on('click', function() {
SyncManager.showMenu({
items: [currentItem]
});
});
$('.btnRecord,.btnFloatingRecord', page).on('click', function () {
$('.btnRecord,.btnFloatingRecord', page).on('click', function() {
var id = getParameterByName('id');
@ -1977,48 +1977,48 @@
});
$('.btnCancelRecording', page).on('click', function () {
$('.btnCancelRecording', page).on('click', function() {
deleteTimer(page, currentItem.TimerId);
});
$('.btnMoreCommands', page).on('click', function () {
$('.btnMoreCommands', page).on('click', function() {
var button = this;
Dashboard.getCurrentUser().done(function (user) {
Dashboard.getCurrentUser().done(function(user) {
LibraryBrowser.showMoreCommands(button, currentItem.Id, LibraryBrowser.getMoreCommands(currentItem, user));
});
});
$('.childrenItemsContainer', page).on('playallfromhere', function (e, index) {
$('.childrenItemsContainer', page).on('playallfromhere', function(e, index) {
LibraryBrowser.playAllFromHere(_childrenItemsFunction, index);
}).on('queueallfromhere', function (e, index) {
}).on('queueallfromhere', function(e, index) {
LibraryBrowser.queueAllFromHere(_childrenItemsFunction, index);
});
$(page).on("click", ".moreScenes", function () {
$(page).on("click", ".moreScenes", function() {
Dashboard.getCurrentUser().done(function (user) {
Dashboard.getCurrentUser().done(function(user) {
renderScenes(page, currentItem, user);
});
}).on("click", ".morePeople", function () {
}).on("click", ".morePeople", function() {
renderCast(page, currentItem, getContext(currentItem));
}).on("click", ".moreSpecials", function () {
}).on("click", ".moreSpecials", function() {
Dashboard.getCurrentUser().done(function (user) {
Dashboard.getCurrentUser().done(function(user) {
renderSpecials(page, currentItem, user);
});
}).on("click", ".moreCriticReviews", function () {
}).on("click", ".moreCriticReviews", function() {
renderCriticReviews(page, currentItem);
});
@ -2028,7 +2028,9 @@
// btnMore[i].icon = AppInfo.moreIcon;
//}
}).on('pagebeforeshow', "#itemDetailPage", function () {
});
pageIdOn('pagebeforeshow', "itemDetailPage", function() {
var page = this;
@ -2038,7 +2040,10 @@
Events.on(LibraryBrowser, 'itemdeleting', onItemDeleted);
}).on('pagebeforehide', "#itemDetailPage", function () {
});
pageIdOn('pagebeforehide', "itemDetailPage", function () {
Events.off(LibraryBrowser, 'itemdeleting', onItemDeleted);