Ignore:
Timestamp:
2021-08-09T13:49:44+12:00 (3 years ago)
Author:
davidb
Message:

UI improvements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/model-interfaces-dev/atea/js/asr/asr-controller.js

    r35265 r35267  
    88* The name of the file input that audio files can be uploaded to.
    99*/
    10 const FILE_UPLOAD_INPUT_NAME = "#fileUpload";
     10const FILE_UPLOAD_INPUT_NAME = "#audioFileUpload";
    1111
    1212/**
     
    126126    const clone = TRANSCRIPTION_TEMPLATE.content.firstElementChild.cloneNode(true);
    127127
     128    const textElement = clone.querySelector(".transcription__text");
     129    textElement.textContent = transcription.transcription;
    128130    const fileNameElement = clone.querySelector(".transcription__file-name");
    129131    fileNameElement.textContent = transcription.file_name;
     
    275277{
    276278    if (e.target.files.length <= 0) {
    277         $("#btnFileUpload").prop("disabled", true);
     279        $("#btnBeginTranscription").prop("disabled", true);
    278280    }
    279281    else {
    280         $("#btnFileUpload").prop("disabled", false);
     282        $("#btnBeginTranscription").prop("disabled", false);
    281283    }
    282284});
Note: See TracChangeset for help on using the changeset viewer.