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

removed dead code

This commit is contained in:
Luke Pulverenti 2015-11-27 09:17:08 -05:00
parent f8a1cdd9a2
commit e4e6f27f87
3 changed files with 0 additions and 74 deletions

View file

@ -378,75 +378,6 @@ function ticks_to_human(str) {
return time; return time;
}; };
(function () {
var supportTouch = $.support.touch,
scrollEvent = "touchmove scroll",
touchStartEvent = supportTouch ? "touchstart" : "mousedown",
touchStopEvent = supportTouch ? "touchend" : "mouseup",
touchMoveEvent = supportTouch ? "touchmove" : "mousemove";
$.event.special.swipeupdown = {
setup: function () {
var thisObject = this;
var $this = $(thisObject);
$this.bind(touchStartEvent, function (event) {
var data = event.originalEvent.touches ?
event.originalEvent.touches[0] :
event,
start = {
time: (new Date).getTime(),
coords: [data.pageX, data.pageY],
origin: $(event.target)
},
stop;
function moveHandler(event) {
if (!start) {
return;
}
var data = event.originalEvent.touches ?
event.originalEvent.touches[0] :
event;
stop = {
time: (new Date).getTime(),
coords: [data.pageX, data.pageY]
};
// prevent scrolling
if (Math.abs(start.coords[1] - stop.coords[1]) > 10) {
event.preventDefault();
}
}
$this
.bind(touchMoveEvent, moveHandler)
.one(touchStopEvent, function (event) {
$this.unbind(touchMoveEvent, moveHandler);
if (start && stop) {
if (stop.time - start.time < 1000 &&
Math.abs(start.coords[1] - stop.coords[1]) > 100 &&
Math.abs(start.coords[0] - stop.coords[0]) < 75) {
start.origin
.trigger("swipeupdown")
.trigger(start.coords[1] > stop.coords[1] ? "swipeup" : "swipedown");
}
}
start = stop = undefined;
});
});
}
};
$.each({
swipedown: "swipeupdown",
swipeup: "swipeupdown"
}, function (event, sourceEvent) {
$.event.special[event] = {
setup: function () {
$(this).bind(sourceEvent, $.noop);
}
};
});
})();
// This only exists because the polymer elements get distorted when using regular jquery show/hide // This only exists because the polymer elements get distorted when using regular jquery show/hide
$.fn.visible = function (visible) { $.fn.visible = function (visible) {

View file

@ -78,10 +78,6 @@
nowPlayingTextElement = $('.nowPlayingBarText', elem); nowPlayingTextElement = $('.nowPlayingBarText', elem);
nowPlayingUserData = $('.nowPlayingBarUserDataButtons', elem); nowPlayingUserData = $('.nowPlayingBarUserDataButtons', elem);
$(elem).on('swipeup', function () {
Dashboard.navigate('nowplaying.html');
});
unmuteButton = $('.unmuteButton', elem).on('click', function () { unmuteButton = $('.unmuteButton', elem).on('click', function () {
if (currentPlayer) { if (currentPlayer) {

View file

@ -57,7 +57,6 @@
"MessageErrorLoadingSupporterInfo": "There was an error loading Emby Premiere information. Please try again later.", "MessageErrorLoadingSupporterInfo": "There was an error loading Emby Premiere information. Please try again later.",
"MessageLinkYourSupporterKey": "Link your Emby Premiere key with up to {0} Emby Connect members to enjoy free access to the following apps:", "MessageLinkYourSupporterKey": "Link your Emby Premiere key with up to {0} Emby Connect members to enjoy free access to the following apps:",
"HeaderConfirmRemoveUser": "Remove User", "HeaderConfirmRemoveUser": "Remove User",
"MessageSwipeDownOnRemoteControl": "Welcome to remote control. Select the device to control by clicking the cast icon in the upper right corner. Swipe down anywhere on this screen to go back to where you came from.",
"MessageConfirmRemoveConnectSupporter": "Are you sure you wish to remove additional Emby Premiere benefits from this user?", "MessageConfirmRemoveConnectSupporter": "Are you sure you wish to remove additional Emby Premiere benefits from this user?",
"ValueTimeLimitSingleHour": "Time limit: 1 hour", "ValueTimeLimitSingleHour": "Time limit: 1 hour",
"ValueTimeLimitMultiHour": "Time limit: {0} hours", "ValueTimeLimitMultiHour": "Time limit: {0} hours",