X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=view%2Ftemplates%2Fhead.tpl;h=e7df8a18cde05c16b15cc43ceff67801ecbe30ca;hb=ec5a3c3440ac357109ad888497acbc0adbaba950;hp=cd6bc52a0f79c03bf298482dc84ddb38b4dbbbbf;hpb=2d450abd3bc4e9f6462ebe5c94b6ad874066c791;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();
}
}