From 3a186697307f185693096fb2160be608c24a39c7 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sat, 30 Jan 2021 16:42:34 -0500 Subject: [PATCH] Rename dolike to doActivityItem --- view/js/main.js | 2 +- view/templates/like_noshare.tpl | 4 +-- view/templates/wall_thread.tpl | 12 ++++----- view/theme/frio/js/theme.js | 4 +-- view/theme/frio/templates/like_noshare.tpl | 4 +-- view/theme/frio/templates/search_item.tpl | 10 +++---- view/theme/frio/templates/wall_thread.tpl | 26 +++++++++---------- view/theme/quattro/templates/photo_item.tpl | 4 +-- view/theme/quattro/templates/search_item.tpl | 4 +-- view/theme/quattro/templates/wall_thread.tpl | 12 ++++----- view/theme/smoothly/templates/wall_thread.tpl | 6 ++--- view/theme/vier/templates/photo_item.tpl | 4 +-- view/theme/vier/templates/search_item.tpl | 4 +-- view/theme/vier/templates/wall_thread.tpl | 12 ++++----- 14 files changed, 54 insertions(+), 54 deletions(-) diff --git a/view/js/main.js b/view/js/main.js index 1503529d1f..6a8266b7e1 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -665,7 +665,7 @@ function imgdull(node) { * @param {string} verb The verb of the action * @param {boolean} un Whether to perform an activity removal instead of creation */ -function dolike(ident, verb, un) { +function doActivityItem(ident, verb, un) { unpause(); $('#like-rotator-' + ident.toString()).show(); verb = un ? 'un' + verb : verb; diff --git a/view/templates/like_noshare.tpl b/view/templates/like_noshare.tpl index 4419a5b97a..3272c2831b 100644 --- a/view/templates/like_noshare.tpl +++ b/view/templates/like_noshare.tpl @@ -1,8 +1,8 @@
- + {{if $dislike}} - + {{/if}}
diff --git a/view/templates/wall_thread.tpl b/view/templates/wall_thread.tpl index 4b1a427859..7dcdb15a5d 100644 --- a/view/templates/wall_thread.tpl +++ b/view/templates/wall_thread.tpl @@ -84,9 +84,9 @@
{{if $item.vote}} @@ -115,9 +115,9 @@ {{/if}} {{if $item.isevent }}
- - - + + +
{{/if}}
diff --git a/view/theme/frio/js/theme.js b/view/theme/frio/js/theme.js index fcf99dc5e6..18215d5d5e 100644 --- a/view/theme/frio/js/theme.js +++ b/view/theme/frio/js/theme.js @@ -774,13 +774,13 @@ function htmlToText(htmlString) { * @param {string} verb The verb of the action * @param {boolean} un Whether to perform an activity removal instead of creation */ -function doLikeAction(ident, verb, un) { +function doActivityItemAction(ident, verb, un) { if (verb.indexOf("attend") === 0) { $(".item-" + ident + " .button-event:not(#" + verb + "-" + ident + ")").removeClass("active"); } $("#" + verb + "-" + ident).toggleClass("active"); - dolike(ident, verb, un); + doActivityItem(ident, verb, un); } // Decodes a hexadecimally encoded binary string diff --git a/view/theme/frio/templates/like_noshare.tpl b/view/theme/frio/templates/like_noshare.tpl index dd3fa2e5f6..df335c32e9 100644 --- a/view/theme/frio/templates/like_noshare.tpl +++ b/view/theme/frio/templates/like_noshare.tpl @@ -3,7 +3,7 @@ @@ -13,7 +13,7 @@ class="btn-link button-likes{{if $responses.dislike.self}} active" aria-pressed="true{{/if}}" id="dislike-{{$id}}" title="{{$dislike_title}}" - onclick="doLikeAction({{$id}}, 'dislike'{{if $responses.dislike.self}}, true{{/if}});" + onclick="doActivityItemAction({{$id}}, 'dislike'{{if $responses.dislike.self}}, true{{/if}});" data-toggle="button"> {{$dislike}} {{/if}} diff --git a/view/theme/frio/templates/search_item.tpl b/view/theme/frio/templates/search_item.tpl index 835b3d6677..3f03f822a5 100644 --- a/view/theme/frio/templates/search_item.tpl +++ b/view/theme/frio/templates/search_item.tpl @@ -143,14 +143,14 @@ {{* Buttons for like and dislike *}} {{if $item.vote}} {{if $item.vote.like}} - + {{/if}} {{if $item.vote.like AND $item.vote.dislike}} {{/if}} {{if $item.vote.dislike}} - + {{/if}} {{if ($item.vote.like OR $item.vote.dislike) AND $item.comment_html}} @@ -254,9 +254,9 @@ {{* Event attendance buttons *}} {{if $item.isevent}} - - - + + + {{/if}} diff --git a/view/theme/frio/templates/wall_thread.tpl b/view/theme/frio/templates/wall_thread.tpl index b98cefb9c9..b8286dd46c 100644 --- a/view/theme/frio/templates/wall_thread.tpl +++ b/view/theme/frio/templates/wall_thread.tpl @@ -286,13 +286,13 @@ as the value of $top_child_total (this is done at the end of this file) {{* Buttons for like and dislike *}} {{if $item.vote}} {{if $item.vote.like}} - + {{/if}} {{if $item.vote.like AND $item.vote.dislike}} {{/if}} {{if $item.vote.dislike}} - + {{/if}} {{if ($item.vote.like OR $item.vote.dislike) AND $item.comment_html}} @@ -317,7 +317,7 @@ as the value of $top_child_total (this is done at the end of this file) {{/if}} {{/if}} {{if $item.vote.announce}} - + {{/if}} {{if $item.vote.share}} @@ -412,9 +412,9 @@ as the value of $top_child_total (this is done at the end of this file) {{* Event attendance buttons *}} {{if $item.isevent}} - - - + + + {{/if}} @@ -431,10 +431,10 @@ as the value of $top_child_total (this is done at the end of this file) {{if $item.vote}}
{{if $item.vote.like}} - + {{/if}} {{if $item.vote.dislike}} - + {{/if}}
{{/if}} @@ -455,11 +455,11 @@ as the value of $top_child_total (this is done at the end of this file) {{if $item.vote.announce}} {{* edit the posting *}}
  • {{if $item.responses.announce.self}} - + {{$item.vote.unannounce.1}} {{else}} - + {{$item.vote.announce.1}} {{/if}} @@ -486,9 +486,9 @@ as the value of $top_child_total (this is done at the end of this file) {{* Event attendance buttons *}} {{if $item.isevent}}
    - - - + + +
    {{/if}} diff --git a/view/theme/quattro/templates/photo_item.tpl b/view/theme/quattro/templates/photo_item.tpl index e14caa542f..182607ab35 100644 --- a/view/theme/quattro/templates/photo_item.tpl +++ b/view/theme/quattro/templates/photo_item.tpl @@ -39,8 +39,8 @@ {{/if}} {{if $vote}} - {{$vote.like.1}} - {{$vote.dislike.1}} + {{$vote.like.1}} + {{$vote.dislike.1}} {{/if}} {{if $vote.share}} diff --git a/view/theme/quattro/templates/search_item.tpl b/view/theme/quattro/templates/search_item.tpl index dca5d31a1e..70aa2ed863 100644 --- a/view/theme/quattro/templates/search_item.tpl +++ b/view/theme/quattro/templates/search_item.tpl @@ -58,10 +58,10 @@ {{/if}} {{if $item.vote.like}} - {{$item.vote.like.1}} + {{$item.vote.like.1}} {{/if}} {{if $item.vote.dislike}} - {{$item.vote.dislike.1}} + {{$item.vote.dislike.1}} {{/if}} {{if $item.vote.share}} diff --git a/view/theme/quattro/templates/wall_thread.tpl b/view/theme/quattro/templates/wall_thread.tpl index 5f682dd3e2..58c68968b0 100644 --- a/view/theme/quattro/templates/wall_thread.tpl +++ b/view/theme/quattro/templates/wall_thread.tpl @@ -121,12 +121,12 @@ {{/if}} {{if $item.vote}} - {{$item.vote.like.1}} + {{$item.vote.like.1}} {{if $item.vote.dislike}} - {{$item.vote.dislike.1}} + {{$item.vote.dislike.1}} {{/if}} {{if $item.vote.announce}} - {{$item.vote.announce.1}} + {{$item.vote.announce.1}} {{/if}} {{if $item.vote.share}} {{$item.vote.share.1}} @@ -135,9 +135,9 @@ {{if $item.isevent}}
    {{/if}} diff --git a/view/theme/smoothly/templates/wall_thread.tpl b/view/theme/smoothly/templates/wall_thread.tpl index 817d4d5ed0..4f70ea6d5b 100644 --- a/view/theme/smoothly/templates/wall_thread.tpl +++ b/view/theme/smoothly/templates/wall_thread.tpl @@ -94,12 +94,12 @@ {{if $item.vote}}