Skip to content

Commit

Permalink
news articles edit publish date auto fills with last saved date
Browse files Browse the repository at this point in the history
  • Loading branch information
mikemaddem committed May 7, 2020
1 parent 42e4be2 commit 51988d9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions project-templates/staff/news/news_article_edit.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
<script type="text/javascript">
$(function () {
$('#datetimepicker1').datetimepicker({
date: moment('{{form.publish.value|date:"Y-m-d H:i" }}'),
format: 'YYYY-MM-DD HH:mm'
});

Expand Down

0 comments on commit 51988d9

Please sign in to comment.