mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-03-07 12:38:23 +00:00
Add parsing of markdown when editing event items
This commit is contained in:
@@ -9049,7 +9049,7 @@ textarea {
|
||||
}
|
||||
|
||||
/* line 57, ../scss/screen.scss */
|
||||
.item-description {
|
||||
.item_row .description {
|
||||
margin-left: 1em;
|
||||
}
|
||||
|
||||
|
||||
@@ -106,7 +106,7 @@ $('body').on('submit', '#item-form', function (e) {
|
||||
// update the table
|
||||
$row = $('#item-' + pk);
|
||||
$row.find('.name').html(escapeHtml(fields.name));
|
||||
$row.find('.description').html(nl2br(escapeHtml(fields.description)));
|
||||
$row.find('.description').html(marked(fields.description));
|
||||
$row.find('.cost').html(parseFloat(fields.cost).toFixed(2));
|
||||
$row.find('.quantity').html(fields.quantity);
|
||||
|
||||
@@ -136,4 +136,4 @@ $("#item-table tbody").sortable({
|
||||
});
|
||||
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
6
RIGS/static/js/marked.min.js
vendored
Normal file
6
RIGS/static/js/marked.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@@ -54,7 +54,7 @@ textarea {
|
||||
max-width: 2em;
|
||||
}
|
||||
|
||||
.item-description {
|
||||
.item_row .description {
|
||||
margin-left: 1em;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user