mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
re-org scripts
This commit is contained in:
parent
9fecb9f7c4
commit
d2f14592e9
6 changed files with 5 additions and 10 deletions
|
@ -877,10 +877,6 @@
|
||||||
atts.push('data-locationtype="' + (item.LocationType || '') + '"');
|
atts.push('data-locationtype="' + (item.LocationType || '') + '"');
|
||||||
atts.push('data-index="' + index + '"');
|
atts.push('data-index="' + index + '"');
|
||||||
|
|
||||||
if (item.IsPlaceHolder) {
|
|
||||||
atts.push('data-placeholder="true"');
|
|
||||||
}
|
|
||||||
|
|
||||||
var html = atts.join(' ');
|
var html = atts.join(' ');
|
||||||
|
|
||||||
if (html) {
|
if (html) {
|
||||||
|
|
|
@ -374,7 +374,6 @@
|
||||||
var playbackPositionTicks = parseInt(card.getAttribute('data-positionticks') || '0');
|
var playbackPositionTicks = parseInt(card.getAttribute('data-positionticks') || '0');
|
||||||
var playAccess = card.getAttribute('data-playaccess');
|
var playAccess = card.getAttribute('data-playaccess');
|
||||||
var locationType = card.getAttribute('data-locationtype');
|
var locationType = card.getAttribute('data-locationtype');
|
||||||
var isPlaceHolder = card.getAttribute('data-placeholder') == 'true';
|
|
||||||
var index = card.getAttribute('data-index');
|
var index = card.getAttribute('data-index');
|
||||||
|
|
||||||
$(card).addClass('hasContextMenu');
|
$(card).addClass('hasContextMenu');
|
||||||
|
@ -413,7 +412,7 @@
|
||||||
|
|
||||||
if (options.showPlayOptions !== false) {
|
if (options.showPlayOptions !== false) {
|
||||||
|
|
||||||
if (MediaController.canPlayByAttributes(itemType, mediaType, playAccess, locationType, isPlaceHolder)) {
|
if (MediaController.canPlayByAttributes(itemType, mediaType, playAccess, locationType)) {
|
||||||
html += '<li data-icon="play"><a href="#" class="btnPlay" data-itemid="' + itemId + '">' + Globalize.translate('ButtonPlay') + '</a></li>';
|
html += '<li data-icon="play"><a href="#" class="btnPlay" data-itemid="' + itemId + '">' + Globalize.translate('ButtonPlay') + '</a></li>';
|
||||||
|
|
||||||
if (commands.indexOf('playfromhere') != -1) {
|
if (commands.indexOf('playfromhere') != -1) {
|
||||||
|
|
|
@ -210,16 +210,16 @@
|
||||||
|
|
||||||
self.canPlay = function (item) {
|
self.canPlay = function (item) {
|
||||||
|
|
||||||
return self.canPlayByAttributes(item.Type, item.MediaType, item.PlayAccess, item.LocationType, item.IsPlaceHolder);
|
return self.canPlayByAttributes(item.Type, item.MediaType, item.PlayAccess, item.LocationType);
|
||||||
};
|
};
|
||||||
|
|
||||||
self.canPlayByAttributes = function (itemType, mediaType, playAccess, locationType, isPlaceHolder) {
|
self.canPlayByAttributes = function (itemType, mediaType, playAccess, locationType) {
|
||||||
|
|
||||||
if (playAccess != 'Full') {
|
if (playAccess != 'Full') {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (locationType == "Virtual" || isPlaceHolder) {
|
if (locationType == "Virtual") {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
<div style="margin:1em 0 .5em;padding-left:5px;">
|
<div style="margin:1em 0 .5em;padding-left:5px;">
|
||||||
<h1 style="display:inline-block;vertical-align:middle;margin: 0;">${HeaderSelectServer}</h1>
|
<h1 style="display:inline-block;vertical-align:middle;margin: 0;">${HeaderSelectServer}</h1>
|
||||||
<a class="accentButton accentButton-g" style="display:inline-block;vertical-align:middle;margin-top:0;" href="https://github.com/MediaBrowser/Wiki/wiki/Media%20Browser%20Connect" target="_blank">
|
<a class="accentButton accentButton-g" style="display:inline-block;vertical-align:middle;margin-top:0;" href="https://github.com/MediaBrowser/Wiki/wiki/Emby%20Connect" target="_blank">
|
||||||
<i class="fa fa-info-circle"></i>
|
<i class="fa fa-info-circle"></i>
|
||||||
${ButtonHelp}
|
${ButtonHelp}
|
||||||
</a>
|
</a>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue