mirror of
https://gitlab.rlp.net/proj-wise2526-video2document/video2document.git
synced 2026-06-15 18:01:52 +02:00
Fixed the change speaker feature. every step till the point where its send to the main functions now
This commit is contained in:
@@ -212,7 +212,7 @@ function loadLanguageOptions(){
|
||||
function loadSpeakerOptions(options){
|
||||
try {
|
||||
var menu = document.getElementById('cur_speaker');
|
||||
var l = document.getElementById("cur_speaker").options.length -1;
|
||||
var l = document.getElementById('cur_speaker').options.length -1;
|
||||
for(i = l; i >= 0; i--){
|
||||
menu.remove(i);
|
||||
}
|
||||
@@ -222,9 +222,10 @@ function loadSpeakerOptions(options){
|
||||
for(i = 0; i < object_holdy.length; i++){
|
||||
choice = document.createElement('option');
|
||||
choice.textContent = options[object_holdy[i]].name;
|
||||
choice.value = options[object_holdy[i]].name;
|
||||
choice.value = object_holdy[i];
|
||||
menu.appendChild(choice);
|
||||
}
|
||||
|
||||
} catch (error) {
|
||||
console.log("Error in script.js loadSpeakerOptions function");
|
||||
console.log(error);
|
||||
@@ -316,15 +317,15 @@ function rewriteSpeakerName(){
|
||||
try {
|
||||
var tempy = document.getElementById("cur_speaker").value;
|
||||
speakerAudios[tempy].name = document.getElementById("newSpeaker").value;
|
||||
setSpeakerAudiosValue(speakerAudios);
|
||||
loadSpeakerOptions(speakerAudios);
|
||||
} catch (error) {
|
||||
|
||||
console.log("\n\n\n" + error + "\n\n\n")
|
||||
}
|
||||
}
|
||||
|
||||
function sendSpeakerPackages(){
|
||||
try {
|
||||
window.sendSpeakerPackages(speakerAudios);
|
||||
window.submitSpeaker.speaker_submit(speakerAudios);
|
||||
} catch (error) {
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user