Commit 3565d684 authored by Robin Tissot's avatar Robin Tissot
Browse files

Fixes transcription not being loaded at first.

parent 7d43dc1e
......@@ -253,12 +253,12 @@ class TranscriptionPanel{
this.part = null;
this.lines = []; // list of TranscriptionLine != this.part.lines
this.$container = $('.img-container', this.$panel);
this.selectedTranscription = $('#document-transcriptions').val();
let itrans = userProfile.get('initialTranscriptions');
if (itrans && itrans[DOCUMENT_ID]) {
$('#document-transcriptions').val(itrans[DOCUMENT_ID]);
}
this.selectedTranscription = $('#document-transcriptions').val();
$('#document-transcriptions').change($.proxy(function(ev) {
this.selectedTranscription = $('#document-transcriptions').val();
for (var i=0; i<this.lines.length; i++) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment