mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 19:08:18 -07:00
rework a-z picker a little
This commit is contained in:
parent
9bcadf03cd
commit
ba24058f75
@ -99,6 +99,7 @@
|
||||
<span class="itemCommunityRating"></span>
|
||||
<span class="userDataIcons" style="margin-left: 2em;"></span>
|
||||
</p>
|
||||
<p id="artist"></p>
|
||||
<p class="itemGenres"></p>
|
||||
<p id="itemTagline" style="font-style: italic;"></p>
|
||||
<p class="itemOverview"></p>
|
||||
@ -129,6 +130,7 @@
|
||||
<div class="detailSectionContent" style="padding: 0 1em;">
|
||||
|
||||
<div id="mediaInfoContent"></div>
|
||||
<p id="players"></p>
|
||||
<p id="seriesAirTime"></p>
|
||||
<p id="itemPremiereDate"></p>
|
||||
<p id="itemBudget"></p>
|
||||
|
@ -231,6 +231,18 @@
|
||||
|
||||
renderSeriesAirTime(page, item, context);
|
||||
renderSimiliarItems(page, item);
|
||||
|
||||
if (item.Players) {
|
||||
$('#players', page).show().html(item.Players + ' Player');
|
||||
} else {
|
||||
$('#players', page).hide();
|
||||
}
|
||||
|
||||
if (item.Type == "Audio" && item.Artists && item.Artists.length) {
|
||||
$('#artist', page).show().html('Artist: <a class="textlink" href="itembynamedetails.html?context=music&artist=' + ApiClient.encodeName(item.Artists[0]) + '">' + item.Artists[0] + '</a>').trigger('create');
|
||||
} else {
|
||||
$('#artist', page).hide();
|
||||
}
|
||||
}
|
||||
|
||||
function renderSimiliarItems(page, item) {
|
||||
|
@ -113,13 +113,13 @@
|
||||
|
||||
$('.alphabetPicker', this).on('alphaselect', function (e, character) {
|
||||
|
||||
query.NameStartsWith = character;
|
||||
query.NameStartsWithOrGreater = character;
|
||||
|
||||
reloadItems(page);
|
||||
|
||||
}).on('alphaclear', function (e) {
|
||||
|
||||
query.NameStartsWith = '';
|
||||
query.NameStartsWithOrGreater = '';
|
||||
|
||||
reloadItems(page);
|
||||
});
|
||||
@ -164,7 +164,7 @@
|
||||
$('#chkThemeSong', this).checked(query.HasThemeSong == true).checkboxradio('refresh');
|
||||
$('#chkThemeVideo', this).checked(query.HasThemeVideo == true).checkboxradio('refresh');
|
||||
|
||||
$('.alphabetPicker', this).alphaValue(query.NameStartsWith);
|
||||
$('.alphabetPicker', this).alphaValue(query.NameStartsWithOrGreater);
|
||||
});
|
||||
|
||||
})(jQuery, document);
|
@ -154,13 +154,13 @@
|
||||
|
||||
$('.alphabetPicker', this).on('alphaselect', function (e, character) {
|
||||
|
||||
query.NameStartsWith = character;
|
||||
query.NameStartsWithOrGreater = character;
|
||||
|
||||
reloadItems(page);
|
||||
|
||||
}).on('alphaclear', function (e) {
|
||||
|
||||
query.NameStartsWith = '';
|
||||
query.NameStartsWithOrGreater = '';
|
||||
|
||||
reloadItems(page);
|
||||
});
|
||||
|
@ -275,7 +275,7 @@
|
||||
|
||||
if (options.showArtist) {
|
||||
|
||||
if (item.Artists && item.Artists.length) {
|
||||
if (item.Artists && item.Artists.length && item.Artists[0]) {
|
||||
|
||||
var artist = item.Artists[0];
|
||||
|
||||
|
@ -110,13 +110,13 @@
|
||||
|
||||
$('.alphabetPicker', this).on('alphaselect', function (e, character) {
|
||||
|
||||
query.NameStartsWith = character;
|
||||
query.NameStartsWithOrGreater = character;
|
||||
|
||||
reloadItems(page);
|
||||
|
||||
}).on('alphaclear', function (e) {
|
||||
|
||||
query.NameStartsWith = '';
|
||||
query.NameStartsWithOrGreater = '';
|
||||
|
||||
reloadItems(page);
|
||||
});
|
||||
@ -157,7 +157,7 @@
|
||||
|
||||
}).checkboxradio('refresh');
|
||||
|
||||
$('.alphabetPicker', this).alphaValue(query.NameStartsWith);
|
||||
$('.alphabetPicker', this).alphaValue(query.NameStartsWithOrGreater);
|
||||
});
|
||||
|
||||
})(jQuery, document);
|
@ -196,13 +196,13 @@
|
||||
|
||||
$('.alphabetPicker', this).on('alphaselect', function (e, character) {
|
||||
|
||||
query.NameStartsWith = character;
|
||||
query.NameStartsWithOrGreater = character;
|
||||
|
||||
reloadItems(page);
|
||||
|
||||
}).on('alphaclear', function (e) {
|
||||
|
||||
query.NameStartsWith = '';
|
||||
query.NameStartsWithOrGreater = '';
|
||||
|
||||
reloadItems(page);
|
||||
});
|
||||
@ -262,7 +262,7 @@
|
||||
$('#chkThemeSong', this).checked(query.HasThemeSong == true).checkboxradio('refresh');
|
||||
$('#chkThemeVideo', this).checked(query.HasThemeVideo == true).checkboxradio('refresh');
|
||||
|
||||
$('.alphabetPicker', this).alphaValue(query.NameStartsWith);
|
||||
$('.alphabetPicker', this).alphaValue(query.NameStartsWithOrGreater);
|
||||
|
||||
});
|
||||
|
||||
|
@ -108,13 +108,13 @@
|
||||
|
||||
$('.alphabetPicker', this).on('alphaselect', function (e, character) {
|
||||
|
||||
query.NameStartsWith = character;
|
||||
query.NameStartsWithOrGreater = character;
|
||||
|
||||
reloadItems(page);
|
||||
|
||||
}).on('alphaclear', function (e) {
|
||||
|
||||
query.NameStartsWith = '';
|
||||
query.NameStartsWithOrGreater = '';
|
||||
|
||||
reloadItems(page);
|
||||
});
|
||||
|
@ -120,13 +120,13 @@
|
||||
|
||||
$('.alphabetPicker', this).on('alphaselect', function (e, character) {
|
||||
|
||||
query.NameStartsWith = character;
|
||||
query.NameStartsWithOrGreater = character;
|
||||
|
||||
reloadItems(page);
|
||||
|
||||
}).on('alphaclear', function (e) {
|
||||
|
||||
query.NameStartsWith = '';
|
||||
query.NameStartsWithOrGreater = '';
|
||||
|
||||
reloadItems(page);
|
||||
});
|
||||
|
@ -100,13 +100,13 @@
|
||||
|
||||
$('.alphabetPicker', this).on('alphaselect', function (e, character) {
|
||||
|
||||
query.NameStartsWith = character;
|
||||
query.NameStartsWithOrGreater = character;
|
||||
|
||||
reloadItems(page);
|
||||
|
||||
}).on('alphaclear', function (e) {
|
||||
|
||||
query.NameStartsWith = '';
|
||||
query.NameStartsWithOrGreater = '';
|
||||
|
||||
reloadItems(page);
|
||||
});
|
||||
@ -140,7 +140,7 @@
|
||||
|
||||
$('#chkIsOnTour', this).checked(query.IsOnTour === true).checkboxradio('refresh');
|
||||
|
||||
$('.alphabetPicker', this).alphaValue(query.NameStartsWith);
|
||||
$('.alphabetPicker', this).alphaValue(query.NameStartsWithOrGreater);
|
||||
});
|
||||
|
||||
})(jQuery, document);
|
@ -110,13 +110,13 @@
|
||||
|
||||
$('.alphabetPicker', this).on('alphaselect', function (e, character) {
|
||||
|
||||
query.NameStartsWith = character;
|
||||
query.NameStartsWithOrGreater = character;
|
||||
|
||||
reloadItems(page);
|
||||
|
||||
}).on('alphaclear', function (e) {
|
||||
|
||||
query.NameStartsWith = '';
|
||||
query.NameStartsWithOrGreater = '';
|
||||
|
||||
reloadItems(page);
|
||||
});
|
||||
@ -166,7 +166,7 @@
|
||||
|
||||
}).checkboxradio('refresh');
|
||||
|
||||
$('.alphabetPicker', this).alphaValue(query.NameStartsWith);
|
||||
$('.alphabetPicker', this).alphaValue(query.NameStartsWithOrGreater);
|
||||
});
|
||||
|
||||
})(jQuery, document);
|
@ -181,13 +181,13 @@
|
||||
|
||||
$('.alphabetPicker', this).on('alphaselect', function (e, character) {
|
||||
|
||||
query.NameStartsWith = character;
|
||||
query.NameStartsWithOrGreater = character;
|
||||
|
||||
reloadItems(page);
|
||||
|
||||
}).on('alphaclear', function (e) {
|
||||
|
||||
query.NameStartsWith = '';
|
||||
query.NameStartsWithOrGreater = '';
|
||||
|
||||
reloadItems(page);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user