X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/a9eef437702d5df7a2f97010e6798c689371808c..5d093d98523af97d285aaacc7a7abad892fba448:/forum/skins/default/templates/answer_edit.html diff --git a/forum/skins/default/templates/answer_edit.html b/forum/skins/default/templates/answer_edit.html index 2d736f3..6414200 100644 --- a/forum/skins/default/templates/answer_edit.html +++ b/forum/skins/default/templates/answer_edit.html @@ -4,9 +4,6 @@ {% load extra_tags %} {% block title %}{% spaceless %}{% trans "Edit answer" %}{% endspaceless %}{% endblock %} {% block forejs %} - - - @@ -15,10 +12,6 @@ $().ready(function(){ $("#nav_questions").attr('className',"on"); $('#editor').TextAreaResizer(); - - //highlight code synctax when editor has new text - $("#editor").typeWatch({highlight: false, wait: 3000, - captureLength: 5, callback: lanai.highlightSyntax}); //toggle preview of editor var display = true; @@ -31,13 +24,11 @@ $('#pre-collapse').text(txt); }); - setupFormValidation("#fmedit", CPValidator.getQuestionFormRules(), CPValidator.getQuestionFormMessages()); $('#id_revision').unbind().change(function(){ $("#select_revision").click(); }); - lanai.highlightSyntax(); }); @@ -52,7 +43,7 @@

{% if revision_form.revision.errors %}{{ revision_form.revision.errors.as_ul }}{% endif %} -
+
{{ revision_form.revision }}