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

get api libs from bower

This commit is contained in:
Luke Pulverenti 2015-12-16 00:30:14 -05:00
parent def418714f
commit f36e664503
97 changed files with 16860 additions and 197 deletions

View file

@ -232,6 +232,16 @@
function renderRecording(context, defaultTimer, program) {
$('.itemName', context).html(program.Name);
$('.itemEpisodeName', context).html(program.EpisodeTitle || '');
$('.itemMiscInfo', context).html(LibraryBrowser.getMiscInfoHtml(program));
$('.itemMiscInfo a').each(function() {
$(this).replaceWith(this.innerHTML);
});
$('#chkNewOnly', context).checked(defaultTimer.RecordNewOnly);
$('#chkAllChannels', context).checked(defaultTimer.RecordAnyChannel);
$('#chkAnyTime', context).checked(defaultTimer.RecordAnyTime);

View file

@ -10,7 +10,13 @@
<div style="text-align: right;">
<paper-toggle-button class="chkAdvanced">${ButtonAdvanced}</paper-toggle-button>
</div>
<div style="display: none;" id="eligibleForSeriesFields">
<p><span class="itemName inlineItemName"></span></p>
<p class="itemEpisodeName"></p>
<p class="itemMiscInfo"></p>
<br />
<div style="display: none;" id="eligibleForSeriesFields">
<div>
<paper-checkbox id="chkRecordSeries">${OptionRecordSeries}</paper-checkbox>
</div>

View file

@ -339,13 +339,18 @@
var template = this.response;
ApiClient.getItem(Dashboard.getCurrentUserId(), itemId).then(function (item) {
var dlg = paperDialogHelper.createDialog();
var dlg = paperDialogHelper.createDialog({
size: 'small',
removeOnClose: true
});
var html = '';
html += '<h2 class="dialogHeader">';
html += '<paper-fab icon="arrow-back" mini class="btnCloseDialog"></paper-fab>';
html += '<div style="display:inline-block;margin-left:.6em;vertical-align:middle;">' + item.Name + '</div>';
html += '</h2>';
html += '<div class="dialogHeader">';
html += '<paper-icon-button icon="arrow-back" class="btnCancel"></paper-icon-button>';
html += '<div class="dialogHeaderTitle">';
html += item.Name;
html += '</div>';
html += '</div>';
html += '<div class="editorContent">';
html += Globalize.translateDocument(template);
@ -356,9 +361,6 @@
$('.subtitleSearchForm', dlg).off('submit', onSearchSubmit).on('submit', onSearchSubmit);
// Has to be assigned a z-index after the call to .open()
$(dlg).on('iron-overlay-closed', onDialogClosed);
paperDialogHelper.open(dlg);
var editorContent = dlg.querySelector('.editorContent');
@ -369,7 +371,7 @@
fillLanguages(editorContent, languages);
});
$('.btnCloseDialog', dlg).on('click', function () {
$('.btnCancel', dlg).on('click', function () {
paperDialogHelper.close(dlg);
});
@ -379,12 +381,6 @@
xhr.send();
}
function onDialogClosed() {
$(this).remove();
Dashboard.hideLoadingMsg();
}
return {
show: showEditor
};