* small fix related to warning about news

* fixed template path finding
* fixed news adding when type != ARTICLE
This commit is contained in:
slawkens1
2018-01-03 23:56:07 +01:00
parent 4c6af13574
commit 603495ca97
3 changed files with 16 additions and 16 deletions

View File

@@ -1,7 +1,7 @@
{% if action != 'edit' %}
<a id="news-button" href="#">Add news</a>
{% endif %}
<form method="post" action="{{ news_link_form }}">
<form method="post" action="{{ news_link_form }}" id="news-edit-form">
{% if action == 'edit' %}
<input type="hidden" name="id" value="{{ news_id }}" />
{% endif %}
@@ -171,6 +171,10 @@
window.location = '{{ news_link }}';
});
$("#news-edit-form").submit(function( event ) {
unsaved = false;
});
lastContent = $("#body").val();
});