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

update subtitle editor

This commit is contained in:
Luke Pulverenti 2015-09-17 00:19:15 -04:00
parent ea83927812
commit 7ea4d0b4c9
3 changed files with 56 additions and 29 deletions

View file

@ -675,7 +675,12 @@
}
if (user.Policy.IsAdministrator) {
commands.push('edit');
if (item.MediaType == 'Video' && item.Type != 'TvChannel' && item.Type != 'Program') {
commands.push('managesubtitles');
}
}
commands.push('refresh');
@ -692,10 +697,6 @@
commands.push('share');
}
if (item.MediaType == 'Video' && item.Type != 'TvChannel' && item.Type != 'Program') {
commands.push('managesubtitles');
}
return commands;
},
@ -736,7 +737,7 @@
editSubtitles: function (itemId) {
require(['subtitleeditor/edititemsubtitles'], function () {
require(['subtitleeditor/subtitleeditor'], function () {
SubtitleEditor.show(itemId);
});