added method to parse markdown data.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user