X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftemplates%2Fhead.tpl;h=e7df8a18cde05c16b15cc43ceff67801ecbe30ca;hb=07faa14361f46b744e4b135d161ad491baa93809;hp=cd6bc52a0f79c03bf298482dc84ddb38b4dbbbbf;hpb=860f11e71b8aa4a61c956d3dc1a14c907b8c62cc;p=friendica.git diff --git a/view/templates/head.tpl b/view/templates/head.tpl index cd6bc52a0f..e7df8a18cd 100644 --- a/view/templates/head.tpl +++ b/view/templates/head.tpl @@ -7,7 +7,7 @@ - + @@ -19,6 +19,7 @@ + - - + @@ -56,14 +56,14 @@ For the relevant js part look at function loadContent() in main.js. *}} {{if $infinite_scroll}} var infinite_scroll = { - 'pageno' : {{$infinite_scroll.pageno}}, - 'reload_uri' : "{{$infinite_scroll.reload_uri}}" - } + "pageno" : {{$infinite_scroll.pageno}}, + "reload_uri" : "{{$infinite_scroll.reload_uri}}" + } {{/if}} function confirmDelete() { return confirm("{{$delitem}}"); } function commentExpand(id) { - $("#comment-edit-text-" + id).value = ''; + $("#comment-edit-text-" + id).value = ""; $("#comment-edit-text-" + id).addClass("comment-edit-text-full"); $("#comment-edit-text-" + id).removeClass("comment-edit-text-empty"); $("#comment-edit-text-" + id).focus(); @@ -72,8 +72,7 @@ return true; } function commentOpen(obj,id) { - if(obj.value == '{{$comment}}') { - obj.value = ''; + if (obj.value == "") { $("#comment-edit-text-" + id).addClass("comment-edit-text-full"); $("#comment-edit-text-" + id).removeClass("comment-edit-text-empty"); $("#mod-cmnt-wrap-" + id).show(); @@ -83,8 +82,7 @@ return false; } function commentClose(obj,id) { - if(obj.value == '') { - obj.value = '{{$comment}}'; + if (obj.value == "") { $("#comment-edit-text-" + id).removeClass("comment-edit-text-full"); $("#comment-edit-text-" + id).addClass("comment-edit-text-empty"); $("#mod-cmnt-wrap-" + id).hide(); @@ -97,46 +95,43 @@ function commentInsert(obj,id) { var tmpStr = $("#comment-edit-text-" + id).val(); - if(tmpStr == '{{$comment}}') { - tmpStr = ''; + if (tmpStr == "") { $("#comment-edit-text-" + id).addClass("comment-edit-text-full"); $("#comment-edit-text-" + id).removeClass("comment-edit-text-empty"); openMenu("comment-edit-submit-wrapper-" + id); } var ins = $(obj).html(); - ins = ins.replace('<','<'); - ins = ins.replace('>','>'); - ins = ins.replace('&','&'); - ins = ins.replace('"','"'); + ins = ins.replace("<","<"); + ins = ins.replace(">",">"); + ins = ins.replace("&","&"); + ins = ins.replace(""","\""); $("#comment-edit-text-" + id).val(tmpStr + ins); } function qCommentInsert(obj,id) { var tmpStr = $("#comment-edit-text-" + id).val(); - if(tmpStr == '{{$comment}}') { - tmpStr = ''; + if (tmpStr == "") { $("#comment-edit-text-" + id).addClass("comment-edit-text-full"); $("#comment-edit-text-" + id).removeClass("comment-edit-text-empty"); openMenu("comment-edit-submit-wrapper-" + id); } var ins = $(obj).val(); - ins = ins.replace('<','<'); - ins = ins.replace('>','>'); - ins = ins.replace('&','&'); - ins = ins.replace('"','"'); + ins = ins.replace("<","<"); + ins = ins.replace(">",">"); + ins = ins.replace("&","&"); + ins = ins.replace(""","\""); $("#comment-edit-text-" + id).val(tmpStr + ins); - $(obj).val(''); + $(obj).val(""); } window.showMore = "{{$showmore}}"; window.showFewer = "{{$showfewer}}"; function showHideCommentBox(id) { - if( $('#comment-edit-form-' + id).is(':visible')) { - $('#comment-edit-form-' + id).hide(); - } - else { - $('#comment-edit-form-' + id).show(); + if ($("#comment-edit-form-" + id).is(":visible")) { + $("#comment-edit-form-" + id).hide(); + } else { + $("#comment-edit-form-" + id).show(); } }