From adc8bb5fa6b6510b10dcb5ab287a11f2db2def7c Mon Sep 17 00:00:00 2001 From: abhisgithub Date: Mon, 10 Sep 2018 19:08:08 +0530 Subject: [PATCH] remove console logs --- templates/edit_article.html | 2 -- templates/new_article.html | 17 ++++++----------- templates/view_article.html | 2 -- 3 files changed, 6 insertions(+), 15 deletions(-) diff --git a/templates/edit_article.html b/templates/edit_article.html index 5626895d..1213473e 100644 --- a/templates/edit_article.html +++ b/templates/edit_article.html @@ -248,8 +248,6 @@ dataType: 'json', success: function (data) { if (data.success) { - console.log("Done"); - console.log(data.html); } } }); diff --git a/templates/new_article.html b/templates/new_article.html index 8a367c56..d5efcbc8 100644 --- a/templates/new_article.html +++ b/templates/new_article.html @@ -85,7 +85,7 @@
{% csrf_token %}
- + {% if request.POST.articleof == 'group' %} {% endif %} @@ -264,7 +264,6 @@ if(update==0) { var src= data.url + '/p/' + data.padid; - console.log(src); document.getElementById("etherpad_iframe").src= src; id = data.article_id; // document.getElementById('create').innerText="Update Article and Go to Next Step"; @@ -273,7 +272,7 @@ // document.getElementById('next').disabled=false; } // check(); - console.log("Checking done"); + }, complete: function(){ setTimeout(function(){ @@ -307,8 +306,6 @@ data: formData, success: function (data) { // alert(data); - console.log(data.article_id); - console.log(data.body); console.log("Done checkin"); }, fail: function(){ @@ -327,13 +324,13 @@ // ======================================================== // ======================================================== - $("#next1").on("click",function(){$("#create").click();if(pos<2)pos++;console.log(pos);}); + $("#next1").on("click",function(){$("#create").click();if(pos<2)pos++;}); $("#next2").on("click",function(){ - $("#save").click();if(pos<2)pos++;console.log(pos); + $("#save").click();if(pos<2)pos++; }); - $("#prev").on("click",function(){if(pos>0)pos--;console.log(pos);check();}); + $("#prev").on("click",function(){if(pos>0)pos--;check();}); $("#finish").on("click",function(){location.href = "/article-view/"+id+"/";}); @@ -348,7 +345,6 @@ success: function (data) { // alert(data); // console.log(data.article_id); - console.log(data.body); // check(); // console.log("Done checkin") $.ajax({ @@ -359,7 +355,6 @@ // alert(data); // console.log(data.article_id); // console.log("!"); - console.log(data); // console.log(data.inappropriates); status= data.inappropriates; // check(); @@ -374,7 +369,7 @@ } else { - if(pos<2)pos++;console.log(pos); + if(pos<2)pos++; $("#save").click(); } }, diff --git a/templates/view_article.html b/templates/view_article.html index 07a29acc..75aabce8 100644 --- a/templates/view_article.html +++ b/templates/view_article.html @@ -128,7 +128,6 @@

Leave a Comment

success: function (data) { // alert(data); // console.log(data.article_id); - console.log(data.body); // check(); // console.log("Done checkin") $.ajax({ @@ -139,7 +138,6 @@

Leave a Comment

// alert(data); // console.log(data.article_id); // console.log("!"); - console.log(data); // console.log(data.inappropriates); status= data.inappropriates; // check();