Compare commits
No commits in common. "212ad3cee056187ca5fd8fac39c8a8fc8f1d68b3" and "a3336d92b35239eacb3b67223c60f19fe314540e" have entirely different histories.
212ad3cee0
...
a3336d92b3
2 changed files with 1 additions and 40 deletions
|
|
@ -21,7 +21,6 @@ pandora.ui.editor = function(data) {
|
||||||
censoredIcon: pandora.site.cantPlay.icon,
|
censoredIcon: pandora.site.cantPlay.icon,
|
||||||
censoredTooltip: Ox._(pandora.site.cantPlay.text),
|
censoredTooltip: Ox._(pandora.site.cantPlay.text),
|
||||||
clickLink: pandora.clickLink,
|
clickLink: pandora.clickLink,
|
||||||
confirmDeleteDialog: confirmDeleteDialog,
|
|
||||||
cuts: data.cuts || [],
|
cuts: data.cuts || [],
|
||||||
duration: data.duration,
|
duration: data.duration,
|
||||||
enableDownload: pandora.hasCapability('canDownloadVideo') >= data.rightslevel || data.editable,
|
enableDownload: pandora.hasCapability('canDownloadVideo') >= data.rightslevel || data.editable,
|
||||||
|
|
@ -443,44 +442,6 @@ pandora.ui.editor = function(data) {
|
||||||
|
|
||||||
pandora._dontSelectResult = false;
|
pandora._dontSelectResult = false;
|
||||||
|
|
||||||
function confirmDeleteDialog(options, callback) {
|
|
||||||
const subject = options.items.length == 1 ? Ox._('annotation') : Ox._('annotations')
|
|
||||||
const $dialog = pandora.ui.iconDialog({
|
|
||||||
buttons: [
|
|
||||||
Ox.Button({
|
|
||||||
id: 'cancel',
|
|
||||||
title: Ox._('Cancel')
|
|
||||||
})
|
|
||||||
.bindEvent({
|
|
||||||
click: function() {
|
|
||||||
$dialog.close();
|
|
||||||
}
|
|
||||||
}),
|
|
||||||
Ox.Button({
|
|
||||||
id: 'delete',
|
|
||||||
title: Ox._('Delete')
|
|
||||||
})
|
|
||||||
.bindEvent({
|
|
||||||
click: function() {
|
|
||||||
$dialog.close();
|
|
||||||
callback()
|
|
||||||
}
|
|
||||||
})
|
|
||||||
],
|
|
||||||
content: Ox._(
|
|
||||||
'Are you sure you want delete {0} {1}',
|
|
||||||
[options.items.length, subject]
|
|
||||||
),
|
|
||||||
height: 96,
|
|
||||||
keys: {enter: 'delete', escape: 'cancel'},
|
|
||||||
title: Ox._(
|
|
||||||
'Delete {0} {1}', [options.items.length, subject]
|
|
||||||
)
|
|
||||||
});
|
|
||||||
$dialog.open()
|
|
||||||
return $dialog
|
|
||||||
}
|
|
||||||
|
|
||||||
function getAnnotationById(id) {
|
function getAnnotationById(id) {
|
||||||
var annotation
|
var annotation
|
||||||
data.annotations.forEach(layer => {
|
data.annotations.forEach(layer => {
|
||||||
|
|
|
||||||
|
|
@ -67,7 +67,7 @@ pandora.ui.metadataDialog = function(data) {
|
||||||
'To update the metadata for this {0}, please enter its IMDb ID.',
|
'To update the metadata for this {0}, please enter its IMDb ID.',
|
||||||
[pandora.site.itemName.singular.toLowerCase()]
|
[pandora.site.itemName.singular.toLowerCase()]
|
||||||
),
|
),
|
||||||
keys: {enter: 'update', escape: 'close'},
|
keyboard: {enter: 'update', escape: 'close'},
|
||||||
title: Ox._('Update Metadata')
|
title: Ox._('Update Metadata')
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue