'),$("#form-upload input[name='file']").trigger("click"),"undefined"!=typeof timer&&clearInterval(timer),timer=setInterval((function(){""!=$("#form-upload input[name='file']").val()&&(clearInterval(timer),$.ajax({url:"index.php?route=extension/tmd/blog/uploadcommentimage",type:"post",dataType:"json",data:new FormData($("#form-upload")[0]),cache:!1,contentType:!1,processData:!1,beforeSend:function(){$(e).button("loading")},complete:function(){$(e).button("reset")},success:function(e){$(".text-danger").remove(),e.error&&$("#image").after('
'+e.error+"
"),e.success&&(alert(e.success),$("#image").attr("value",e.file),$("#imagesrc").attr("src",e.file1),$("#imagesrc").css({display:"block",padding:"10px"}))},error:function(e,t,a){alert(a+"\r\n"+e.statusText+"\r\n"+e.responseText)}}))}),500)})),$(".addbuton").bind("click",(function(){$.ajax({url:"index.php?route=extension/tmd/blog/addblogcomments",type:"post",data:$(".adddata input[type='text'],.adddata input[type='hidden']"),dataType:"json",success:function(e){$(".alert, .text-danger").remove(),e.error&&(e.error&&$("#postfeedback").before(''+e.error+"
"),$(".warning").fadeIn("slow")),e.success&&($("#postfeedback").before(''+e.success+'
'),$(".success").fadeIn("slow"),$("input[name=comment]").val(""),$("input[name=image]").val(""),$("#imagesrc").attr("src",""),$("#imagesrc").css({display:"none"}),$(".loadcomment").load("index.php?route=extension/tmd/blog/loadblogcomment&blog_id=77"),$(".commentcount").html(e.comments))}})})),$((function(){$(".commenttextbox").keyup((function(e){13==e.which&&$(".addbuton").trigger("click")}))})),$(".loadcomment").load("index.php?route=extension/tmd/blog/loadblogcomment&blog_id=77"),$("#loginpage").bind("click",(function(){$.ajax({url:"index.php?route=extension/tmd/blog/addlogin",type:"post",data:$(".modal-content input[type='text'],.modal-content input[type='password'], .modal-content input[type='hidden'], .modal-content input[type='radio']:checked, .modal-content input[type='checkbox']:checked, .modal-content select, .modal-content textarea"),dataType:"json",success:function(e){$(".alert, .text-danger").remove(),e.error&&(void 0!==e.error.email&&$(".emailerror").parent("div").before(''+e.error.email+"
"),void 0!==e.error.password&&$(".emailerror").parent("div").before(' '+e.error.password+"
"),$(".warning").fadeIn("slow")),e.success&&($(".modal-content").before(''+e.success+'
'),$(".success").fadeIn("slow"),window.location="index.php?route=extension/tmd/blog&blog_id=77")}})})); Whatsapp Destek