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

Removed guids from the model project

This commit is contained in:
Luke Pulverenti 2014-05-08 16:09:53 -04:00
parent b39a9e4797
commit fd22232778
5 changed files with 45 additions and 45 deletions

View file

@ -244,10 +244,6 @@
display: none;
}
.libraryViewNavInner {
text-align: left;
}
.desktopLibraryMenu {
display: none;
}

View file

@ -4,21 +4,18 @@
<title>${TitleMediaBrowser}</title>
</head>
<body>
<div id="nowPlayingPage" data-role="page" class="page libraryPage nowPlayingPage noSecondaryNavPage" data-theme="b">
<div id="nowPlayingPage" data-role="page" class="page libraryPage nowPlayingPage" data-theme="b">
<div class="libraryViewNav">
<a href="#" class="ui-btn-active tabButton" data-tab="tabNowPlaying">${TabNowPlaying}</a>
<a href="#" class="tabButton" data-tab="tabNavigation">${TabControls}</a>
<!-- <a href="#" class="tabButton" data-tab="tabAdvanced">${TabAdvanced}</a>-->
</div>
<div data-role="content" style="padding: 1em 0;">
<div data-role="controlgroup" data-type="horizontal" data-mini="true" style="text-align: center;">
<input type="radio" name="radioNowPlayingTab" class="radioTabButton" id="radioNowPlaying" value="tabNowPlaying">
<label for="radioNowPlaying">${TabNowPlaying}</label>
<input type="radio" name="radioNowPlayingTab" class="radioTabButton" id="radioNavigation" value="tabNavigation">
<label for="radioNavigation">${TabControls}</label>
</div>
<br />
<div style="text-align: center;">
<div class="tabNowPlaying tabContent">
<div class="itemName" style="line-height: normal;"></div>
<div class="nowPlayingPageImage" style="margin: 1em 0;"></div>
<div>
@ -82,6 +79,8 @@
<button data-icon="camera" data-inline="true" data-iconpos="notext" title="${ButtonTakeScreenshot}" class="btnScreenshot btnCommand" data-command="TakeScreenshot">${ButtonTakeScreenshot}</button>
</div>
</div>
<div class="tabAdvanced tabContent" style="display: none;">
</div>
</div>
</div>

View file

@ -54,6 +54,8 @@
centerText: true
});
html += LibraryBrowser.getPagingHtml(query, result.TotalRecordCount);
$('#items', page).html(html).trigger('create').createPosterItemMenus();
$('.btnNextPage', page).on('click', function () {

View file

@ -17,7 +17,7 @@
html += streams.map(function (s) {
var streamHtml = '<li><a data-index="' + s.Index + '" href="#" style="font-size:13px;" class="lnkTrackOption">';
var streamHtml = '<li><a data-index="' + s.Index + '" href="#" style="font-size:15px;" class="lnkTrackOption"><h3>';
streamHtml += (s.Codec || '').toUpperCase();
@ -25,7 +25,7 @@
streamHtml += ' ' + s.Profile;
}
streamHtml += '<br/>';
streamHtml += '</h3><p>';
var extras = [];
@ -45,7 +45,7 @@
streamHtml += extras.join(' - ');
streamHtml += '</a></li>';
streamHtml += '</p></a></li>';
return streamHtml;
@ -67,11 +67,11 @@
var html = '<li data-role="list-divider">Select Subtitles</li>';
html += '<li><a href="#" style="font-size:13px;" data-index="-1" class="lnkTrackOption">Off</a></li>';
html += '<li><a href="#" style="font-size:15px;" data-index="-1" class="lnkTrackOption"><h3>Off</h3></a></li>';
html += streams.map(function (s) {
var streamHtml = '<li><a data-index="' + s.Index + '" href="#" style="font-size:13px;" class="lnkTrackOption">';
var streamHtml = '<li><a data-index="' + s.Index + '" href="#" style="font-size:15px;" class="lnkTrackOption"><h3>';
streamHtml += (s.Language || 'Unknown language');
@ -85,11 +85,11 @@
streamHtml += ' (Forced)';
}
streamHtml += '<br/>';
streamHtml += '</h3><p>';
streamHtml += (s.Codec || '').toUpperCase();
streamHtml += '</a></li>';
streamHtml += '</p></a></li>';
return streamHtml;
@ -102,12 +102,15 @@
function bindEvents(page) {
$('.radioTabButton', page).on('change', function () {
$('.tabButton', page).on('click', function () {
var elem = $('.' + this.value, page);
var elem = $('.' + this.getAttribute('data-tab'), page);
elem.siblings('.tabContent').hide();
elem.show();
$('.tabButton', page).removeClass('ui-btn-active');
$(this).addClass('ui-btn-active');
});
$('.btnCommand,.btnToggleFullscreen', page).on('click', function () {
@ -442,8 +445,7 @@
var page = this;
$('.radioTabButton', page).checked(false).checkboxradio('refresh');
$('.radioTabButton:first', page).checked(true).checkboxradio('refresh').trigger('change');
$('.tabButton:first', page).trigger('click');
$(function () {

View file

@ -849,6 +849,25 @@ var Dashboard = {
case 'GoToSearch':
Search.showSearchPanel($.mobile.activePage);
break;
case 'DisplayMessage':
{
var args = cmd.Arguments;
if (args.TimeoutMs && WebNotifications.supported()) {
var notification = {
title: args.Header,
body: args.Text,
timeout: args.TimeoutMs
};
WebNotifications.show(notification);
}
else {
Dashboard.showFooterNotification({ html: "<b>" + args.Header + ":&nbsp;&nbsp;&nbsp;</b>" + args.Text, timeout: args.TimeoutMs });
}
break;
}
case 'VolumeUp':
case 'VolumeDown':
case 'Mute':
@ -948,25 +967,6 @@ var Dashboard = {
Dashboard.processGeneralCommand(cmd);
}
else if (msg.MessageType === "MessageCommand") {
var cmd = msg.Data;
if (cmd.TimeoutMs && WebNotifications.supported()) {
var notification = {
title: cmd.Header,
body: cmd.Text,
timeout: cmd.TimeoutMs
};
WebNotifications.show(notification);
}
else {
Dashboard.showFooterNotification({ html: "<b>" + cmd.Header + ":&nbsp;&nbsp;&nbsp;</b>" + cmd.Text, timeout: cmd.TimeoutMs });
}
}
},
onBrowseCommand: function (cmd) {
@ -1308,7 +1308,8 @@ var Dashboard = {
"SetAudioStreamIndex",
"SetSubtitleStreamIndex",
"DisplayContent",
"GoToSearch"
"GoToSearch",
"DisplayMessage"
];
}