Skip to content

Commit

Permalink
remove console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
abhijitbonik committed Sep 10, 2018
1 parent f30945b commit adc8bb5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 15 deletions.
2 changes: 0 additions & 2 deletions templates/edit_article.html
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,6 @@
dataType: 'json',
success: function (data) {
if (data.success) {
console.log("Done");
console.log(data.html);
}
}
});
Expand Down
17 changes: 6 additions & 11 deletions templates/new_article.html
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
<form id="step_2" method="post" enctype="multipart/form-data" >
{% csrf_token %}
<div class="form-group">
<iframe id="etherpad_iframe" src="{{url}}/p/{{article.id}}?userName={{request.user}}" style="height: 95%; width: 100%; min-height: 500px; display: block"></iframe>
<iframe id="etherpad_iframe" src="" style="height: 95%; width: 100%; min-height: 500px; display: block"></iframe>
{% if request.POST.articleof == 'group' %}
<input type = 'hidden' name = 'gid' value = {{group.pk}}>
{% endif %}
Expand Down Expand Up @@ -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";
Expand All @@ -273,7 +272,7 @@
// document.getElementById('next').disabled=false;
}
// check();
console.log("Checking done");

},
complete: function(){
setTimeout(function(){
Expand Down Expand Up @@ -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(){
Expand All @@ -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+"/";});


Expand All @@ -348,7 +345,6 @@
success: function (data) {
// alert(data);
// console.log(data.article_id);
console.log(data.body);
// check();
// console.log("Done checkin")
$.ajax({
Expand All @@ -359,7 +355,6 @@
// alert(data);
// console.log(data.article_id);
// console.log("!");
console.log(data);
// console.log(data.inappropriates);
status= data.inappropriates;
// check();
Expand All @@ -374,7 +369,7 @@
}
else
{
if(pos<2)pos++;console.log(pos);
if(pos<2)pos++;
$("#save").click();
}
},
Expand Down
2 changes: 0 additions & 2 deletions templates/view_article.html
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ <h3>Leave a Comment</h3>
success: function (data) {
// alert(data);
// console.log(data.article_id);
console.log(data.body);
// check();
// console.log("Done checkin")
$.ajax({
Expand All @@ -139,7 +138,6 @@ <h3>Leave a Comment</h3>
// alert(data);
// console.log(data.article_id);
// console.log("!");
console.log(data);
// console.log(data.inappropriates);
status= data.inappropriates;
// check();
Expand Down

0 comments on commit adc8bb5

Please sign in to comment.