Skip to content
Snippets Groups Projects
Commit c95a5981 authored by Sebastien's avatar Sebastien
Browse files

Remove display of playback rate on preview capsule and if playback rate is regular playbackrate

parent 424d1079
Branches
Tags
No related merge requests found
...@@ -491,6 +491,14 @@ function AnnotationSpeedPanelEdition(data) { ...@@ -491,6 +491,14 @@ function AnnotationSpeedPanelEdition(data) {
AnnotationSpeedPanelEdition.prototype = Object.create(PanelEdition.prototype); AnnotationSpeedPanelEdition.prototype = Object.create(PanelEdition.prototype);
AnnotationSpeedPanelEdition.prototype.appendInputEditorDiv = function (parentDiv) { AnnotationSpeedPanelEdition.prototype.appendInputEditorDiv = function (parentDiv) {
let that = this; let that = this;
let speed = this.tag.getMetadata("Rekall->Speed");
if (!speed || !speed.trim().length)
speed = 1;
if (!this.canEdit && (1 === speed || "1" === speed)){
return;
}
this.readonlyDiv = $('<form>'); this.readonlyDiv = $('<form>');
this.readonlyDiv.addClass('popupRightItem') this.readonlyDiv.addClass('popupRightItem')
.attr('id', 'popupSpeedInput') .attr('id', 'popupSpeedInput')
...@@ -616,9 +624,7 @@ AnnotationSpeedPanelEdition.prototype.appendInputEditorDiv = function (parentDiv ...@@ -616,9 +624,7 @@ AnnotationSpeedPanelEdition.prototype.appendInputEditorDiv = function (parentDiv
this.readonlyDiv.append(input); this.readonlyDiv.append(input);
this.readonlyDiv.append(inputLabel); this.readonlyDiv.append(inputLabel);
let speed = this.tag.getMetadata("Rekall->Speed");
if (!speed || !speed.trim().length)
speed = 1;
this.readonlyDiv.children('input[value="' + speed + '"]').attr('checked', true); this.readonlyDiv.children('input[value="' + speed + '"]').attr('checked', true);
this.readonlyDiv.children('input[name=playback_rate]').change(function (event) { this.readonlyDiv.children('input[name=playback_rate]').change(function (event) {
event.stopPropagation(); event.stopPropagation();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment