mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-24 08:52:15 +00:00
Fixed for event items. Will probably fail tests because selenium can't type in simpleMDE :(
This commit is contained in:
@@ -43,12 +43,14 @@
|
||||
|
||||
$(document).ready(function () {
|
||||
|
||||
$(".md-enabled").each(function(index){
|
||||
editor = new SimpleMDE({
|
||||
element: $(".md-enabled")[index],
|
||||
toolbar: ["bold", "italic", "strikethrough", "|", "unordered-list", "ordered-list", "|", "link", "|", "preview", "guide"],
|
||||
status: false,
|
||||
});
|
||||
setupMDE('#id_description');
|
||||
setupMDE('#id_notes');
|
||||
setupMDE('#item_description');
|
||||
|
||||
$('#itemModal').on('shown.bs.modal', function (e) {
|
||||
$('#item_description').data('mde_editor').value(
|
||||
$('#item_description').val()
|
||||
);
|
||||
});
|
||||
|
||||
{% if not object.pk and not form.errors %}
|
||||
|
||||
Reference in New Issue
Block a user