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

@ -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"
];
}