diff --git a/pandora/config.padma.jsonc b/pandora/config.padma.jsonc index fa9e14319..42f5dba37 100644 --- a/pandora/config.padma.jsonc +++ b/pandora/config.padma.jsonc @@ -100,7 +100,7 @@ "clipLayers": ["transcripts", "keywords", "places", "events", "descriptions"], /* "documentKeys" defines the metadata associated with each document. Required keys - are "*", "id" and "title". + are "*", "id" and "title". A documentKey must have the following properties: "id": The unique id of the key (as used by the server) "title": The title of the key (as displayed by the client) @@ -1003,7 +1003,7 @@ */ "media": { "importPosters": false, - "importFrames": false + "importFrames": false }, /* "menuExtras" can be used to add extra functionality to the main menu bar. @@ -1148,6 +1148,7 @@ "level": "guest", "ui": { "annotationsCalendarSize": 128, + "annotationsHighlight": false, "annotationsMapSize": 128, "annotationsRange": "position", "annotationsSize": 256, diff --git a/pandora/config.pandora.jsonc b/pandora/config.pandora.jsonc index fcde8ab9d..b050cd960 100644 --- a/pandora/config.pandora.jsonc +++ b/pandora/config.pandora.jsonc @@ -1095,6 +1095,7 @@ examples (config.SITENAME.jsonc) that are part of this pan.do/ra distribution. "level": "guest", "ui": { "annotationsCalendarSize": 128, + "annotationsHighlight": false, "annotationsMapSize": 128, "annotationsRange": "all", "annotationsSize": 256, diff --git a/static/js/editor.js b/static/js/editor.js index 00dddae83..4e4f9ad52 100644 --- a/static/js/editor.js +++ b/static/js/editor.js @@ -7,6 +7,7 @@ pandora.ui.editor = function(data) { that = Ox.VideoAnnotationPanel({ annotationsCalendarSize: ui.annotationsCalendarSize, + annotationsHighlight: ui.annotationsHighlight, annotationsMapSize: ui.annotationsMapSize, annotationsRange: ui.annotationsRange, annotationsSeparator: pandora.site.annotations.separator, @@ -138,6 +139,9 @@ pandora.ui.editor = function(data) { Ox.Request.clearCache(); }); }, + annotationshighlight: function(data) { + pandora.UI.set({annotationsHighlight: data}); + }, annotationsrange: function(data) { pandora.UI.set({annotationsRange: data.range}); },