added method to parse markdown data.

This commit is contained in:
DESKTOP-GENO133\IvanPlex
2024-01-29 19:43:53 -07:00
parent 357eff116f
commit d9d0957040
12 changed files with 159 additions and 9 deletions

View File

@@ -414,4 +414,24 @@ function moveRecord(recordId, source, dest) {
$("#workAroundInput").hide();
}
});
}
function showLinks(e) {
$("#workAroundInput").show();
var textAreaName = $(e.parentElement).attr("for");
var text = $(`#${textAreaName}`).val();
if (text == undefined) {
$("#workAroundInput").hide();
return;
}
if (text.length > 0) {
var formatted = markdown(text);
Swal.fire({
html: formatted,
confirmButtonText: 'Close',
}).then(() => {
$("#workAroundInput").hide();
});
} else {
$("#workAroundInput").hide();
}
}