diff options
Diffstat (limited to 'templates/news/add.html')
-rw-r--r-- | templates/news/add.html | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/templates/news/add.html b/templates/news/add.html index 48b013f0..f580e0d0 100644 --- a/templates/news/add.html +++ b/templates/news/add.html @@ -33,19 +33,8 @@ <div id="previewdata" class="article-content"></div> </div> {% load cdn %}{% jquery %} +<script type="text/javascript" src="/media/archweb.js"></script> <script type="text/javascript"> -function enablePreview() { - $('#previewbtn').click(function(event) { - event.preventDefault(); - $.post('/news/preview/', - { data: $('#id_content').val() }, - function(data) { - $('#previewdata').html(data); - $('.news-article').show(); - }); - $('#previewtitle').html($('#id_title').val()); - }); -} $(document).ready(enablePreview); </script> {% endblock %} |