|
|
|
@ -110,7 +110,6 @@ let preferredVideoCodec = "avc1";
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @param {string} id
|
|
|
|
* @param {string} id
|
|
|
|
* @returns {any}
|
|
|
|
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
function getId(id) {
|
|
|
|
function getId(id) {
|
|
|
|
return document.getElementById(id);
|
|
|
|
return document.getElementById(id);
|
|
|
|
@ -1349,11 +1348,14 @@ function afterSave(location, filename, progressId, thumbnail) {
|
|
|
|
finalLocation = location.split(path.sep).join("\\\\");
|
|
|
|
finalLocation = location.split(path.sep).join("\\\\");
|
|
|
|
finalFilename = filename.split(path.sep).join("\\\\");
|
|
|
|
finalFilename = filename.split(path.sep).join("\\\\");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
getId(
|
|
|
|
const fileSavedElement = document.createElement("b")
|
|
|
|
progressId
|
|
|
|
fileSavedElement.textContent = i18n.__("File saved. Click to Open")
|
|
|
|
).innerHTML = `<b onClick="showItem(\`${finalLocation}\`, \`${finalFilename}\`)">${i18n.__(
|
|
|
|
fileSavedElement.onclick = () => {
|
|
|
|
"File saved. Click to Open"
|
|
|
|
showItem(finalLocation, finalFilename)
|
|
|
|
)}</b>`;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getId(progressId).innerHTML = "";
|
|
|
|
|
|
|
|
getId(progressId).appendChild(fileSavedElement);
|
|
|
|
|
|
|
|
|
|
|
|
window.scrollTo(0, document.body.scrollHeight);
|
|
|
|
window.scrollTo(0, document.body.scrollHeight);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|