Skip to content

Commit

Permalink
remove article autosave intervals
Browse files Browse the repository at this point in the history
  • Loading branch information
abhijitbonik committed Sep 10, 2018
1 parent adc8bb5 commit 62edd7c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 29 deletions.
3 changes: 0 additions & 3 deletions CollaborationSystem/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,6 @@

url(r'^articles/$', articleview.display_articles, name='display_articles'),
url(r'^article-view/(?P<pk>\d*)/$', articleview.view_article, name='article_view'),

url(r'^ajax/article_autosave/(?P<pk>\d*)/$', articleview.article_autosave, name='article_autosave'),

url(r'^ajax/article_text/(?P<pk>\d*)/$', articleview.article_text, name='article_text'),

url(r'^h5p-view/(?P<pk>\d*)/$', communityview.h5p_view, name='h5p_view'),
Expand Down
26 changes: 0 additions & 26 deletions templates/edit_article.html
Original file line number Diff line number Diff line change
Expand Up @@ -235,32 +235,6 @@
{% endblock %}
{% block javascript %}


<script>
var id = '{{article.article.id}}';
setInterval(function(){
$.ajax({
type:'POST',
url: '/ajax/article_autosave/'+id+'/',
data: {
csrfmiddlewaretoken: '{{csrf_token}}'
},
dataType: 'json',
success: function (data) {
if (data.success) {
}
}
});
},3000);
// ClassicEditor
// .create( document.querySelector( '#editor' ) )
// .then( editor => {
// console.log( editor );
// } )
// .catch( error => {
// console.error( error );
// } );
</script>
<script src="{% static 'js/jquery-3.2.1.min.js' %}"></script>
<script src="{% static 'js/bootstrap_fileinput/piexif.min.js' %}"></script>
<script src="{% static 'js/bootstrap_fileinput/purify.min.js' %}"></script>
Expand Down

0 comments on commit 62edd7c

Please sign in to comment.