allow for annotation highlight if same value
This commit is contained in:
parent
9b3c7ddf20
commit
6eb3b0bb6f
4 changed files with 21 additions and 14 deletions
|
|
@ -52,7 +52,7 @@ Ox.AnnotationPanel = function(options, self) {
|
|||
enableExport: false,
|
||||
enableImport: false,
|
||||
highlight: '',
|
||||
highlightAnnotations: false,
|
||||
highlightAnnotations: 'none',
|
||||
highlightLayer: '*',
|
||||
itemName: {singular: 'video', plural: 'videos'},
|
||||
layers: [],
|
||||
|
|
@ -514,8 +514,9 @@ Ox.AnnotationPanel = function(options, self) {
|
|||
{},
|
||||
{id: 'highlightannotations', title: Ox._('Highlight Annotations'), disabled: true},
|
||||
{group: 'highlight', max: 1, items: [
|
||||
{id: 'none', title: Ox._('None'), checked: !self.options.highlightAnnotations},
|
||||
{id: 'selection', title: Ox._('Matching Current Selection'), checked: self.options.highlightAnnotations}
|
||||
{id: 'none', title: Ox._('None'), checked: self.options.highlightAnnotations == 'none'},
|
||||
{id: 'value', title: Ox._('Same Value'), checked: self.options.highlightAnnotations == 'value'},
|
||||
{id: 'selection', title: Ox._('Same Selection'), checked: self.options.highlightAnnotations == 'selection'}
|
||||
]}
|
||||
] : [],
|
||||
self.languages.length > 1 ? [
|
||||
|
|
@ -574,7 +575,7 @@ Ox.AnnotationPanel = function(options, self) {
|
|||
that.options({highlightLayer: layer});
|
||||
that.triggerEvent('highlightlayer', self.options.highlightLayer);
|
||||
} else if (data.id == 'highlight') {
|
||||
var value = data.checked[0].id == 'selection'
|
||||
var value = data.checked[0].id
|
||||
that.options({highlightAnnotations: value});
|
||||
that.triggerEvent('highlightannotations', self.options.highlightAnnotations);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue