Hány tankolással lehet megtenni 2000km-t egy 6-8 fogyasztású autóval? - kérdések és válaszok
cikkcakk 2017. máj. 25.
').insertAfter( $( "#wordcounter_editanswersender" ) ); } } else if (data.message=='good') { blockitem.find('.answerrestwrap:first').children('.actualcomment').html(data.editedcontent); //if editor is tinymce tinymce.remove('#commenttextclass'); $(".tinymceanswertextclass").removeClass('tinymceloaded'); //if editor is tinymce $('.answereditsender').remove(); $('.answerblockitem').find('.answerrestwrap:first').children('.name, .actualcomment, .lowercommentblock, .commentcommentreplywrap').show(); if(data.changeofuser=='1') { if(elementkind=='comment') { //data.userimagechange if(data.userimagechange=='0') { blockitem.find('.answerphotowrap:first').html(' '); blockitem.find('.name:first').find(':first-child').remove(); blockitem.find('.name:first').prepend(''+anonimanswer+''); } else { if(data.userimage=='1') { blockitem.find('.answerphotowrap:first').html(' '); } else { blockitem.find('.answerphotowrap:first').html(' ');	} blockitem.find('.name:first').find(':first-child').remove(); blockitem.find('.name:first').prepend(''+data.username+''); } } else { if(data.userimagechange=='0') { blockitem.find('.answerphotowrap:first').html(' '); blockitem.find('.name:first').find(':first-child').remove(); blockitem.find('.name:first').prepend(''+anonimanswer+''); } else { if(data.userimage=='1') { blockitem.find('.answerphotowrap:first').html(' '); } else { blockitem.find('.answerphotowrap:first').html(' '); } blockitem.find('.name:first').find(':first-child').remove(); blockitem.find('.name:first').prepend(''+data.username+''); } } blockitem.data('anonim',defaultanonimedit); } } } });//firstajax }); $('.answerwrapper').on('click', '#editcommentbuttoncancel', function(event){ event.preventDefault(); var blockitem = $(this).closest('.answerblockitem'); //if editor is tinymce tinymce.remove('#commenttextclass'); $(".tinymceanswertextclass").removeClass('tinymceloaded'); //if editor is tinymce $('.answereditsender').remove(); $('.answerblockitem').find('.answerrestwrap').children('.name, .actualcomment, .lowercommentblock, .commentcommentreplywrap').show(); }); $('#answersortchange').change(function () { var thisval = $(this).val(); $.ajax({ type: "POST", url: base+"inc/sortinganswer.php", data: { answersortchange: thisval, }, success: function(response) { if('1'=='1') location.reload(false); else window.location.href = 'https://kerdesek.hu/kerdes/hany-tankolassal-lehet-megtenni-2000km-t-egy-6-8-fogyasztasu-autoval'; } }); }); $('.answerwrapper').on('click', '.loadmorecomments', function(event){ event.preventDefault(); if($('#sendingdata').data('sending')=='1') { return; } $('#sendingdata').data('sending','1'); var current = $(this); var blockitem = $(this).closest('.answerblockitem'); var commentcount = blockitem.data('commentcount'); var elementid=blockitem.data('answerid'); var actualpage = blockitem.data('actualpage'); if(!current.find('.fa-mail-reply').length) { blockitem.data('actualpage', '0'); blockitem.find('.loadedcomment').fadeOut(500, function(){ $(this).remove(); blockitem.data('actualpage', '0'); current.html(''+load_more_comments+''); $('#sendingdata').data('sending','0'); return; }); } var allpage = (Math.ceil((commentcount-2)/10))+1; var nextpage = actualpage+1; if (nextpage'+hidecomments+''); } blockitem.data('actualpage', nextpage); } }); } }); $('.answerwrapper').on('click', '.askerpiclink', function(event){ event.preventDefault();	if($('#sendingdata').data('sending')=='1') { return; } $('#sendingdata').data('sending','1'); var blockitem = $(this).closest('.answerblockitem'); var lowerblockitem = $(this).closest('.lowercommentblock'); var elementid=blockitem.data('answerid'); if($(this).hasClass('starclicked'))//chosen { var change='remove'; $(this).removeClass('starclicked'); $(this).attr("title","'+mark_as_good_answer+'"); $(blockitem).find('.chosenanswerbadge').remove(); } else//notchosen { var change='add'; $(this).addClass('starclicked'); $(this).attr("title","'+not_accept_as_good_answer+'"); $(blockitem).prepend('
'); } $.ajax({ url: base+"inc/askerpic.php", type: "POST", data: { change:change, elementid:elementid, question:'14787', }, success: function() { $('#sendingdata').data('sending','0'); } }); }); $('.answerwrapper, .questionwrapper').on('click', '.fa-thumbs-up', function(event){ event.preventDefault();	if(!userid) { $('.advisetitleboxwrapper').remove(); $('
').insertAfter( $( "#wordcounter_firstanswersender" ) ); } }	else { $('#notenough').remove(); } if (validateproblem == '1') { $('#sendingdata').data('sending','0'); return; } //validate var question_id='14787'; if($('#defaultanonimanswer').is(":checked")) var defaultanonimanswer='1'; else var defaultanonimanswer='0'; if($('#generate').is(":checked")) var generate='yes'; else var generate=''; if($('#generate2').is(":checked")) var generate2='yes'; else var generate2=''; //if editor is tinymce //var answercontent = $("#answertextclass").html(); var answercontent = tinymce.get('answertextclass').getContent(); $.ajax({//firstajax type:"POST", dataType: 'json', url:base+'inc/answersend.php', data: {answercontent:answercontent, question_id:question_id, defaultanonimanswer:defaultanonimanswer, generate:generate, generate2:generate2, isowner:'0', questionanonim:'1', grecaptcharesponse:response,}, success:function(data){ $('#sendingdata').data('sending','0'); if (data.message=='timeisnotgood') { $('#notenough').remove(); if(!$('#timeisnotgood').length) { $('