aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-01-14 14:28:35 +0000
committerMario <mario@mariovavti.com>2021-01-14 14:28:35 +0000
commit83f0c3d1ddcedc2324021f5f0d7a7e0b319da0d3 (patch)
tree6e1326e41b35eabda06972a8d4fff797e042d8b0 /view
parente5a70744c0653c56bb432e6325f2de629e3f3b56 (diff)
downloadvolse-hubzilla-83f0c3d1ddcedc2324021f5f0d7a7e0b319da0d3.tar.gz
volse-hubzilla-83f0c3d1ddcedc2324021f5f0d7a7e0b319da0d3.tar.bz2
volse-hubzilla-83f0c3d1ddcedc2324021f5f0d7a7e0b319da0d3.zip
some work to fix r_preview in list mode
Diffstat (limited to 'view')
-rw-r--r--view/js/main.js5
-rwxr-xr-xview/tpl/build_query.tpl6
2 files changed, 9 insertions, 2 deletions
diff --git a/view/js/main.js b/view/js/main.js
index 3e3fd057c..cd95a8a0b 100644
--- a/view/js/main.js
+++ b/view/js/main.js
@@ -1152,7 +1152,10 @@ function dolike(ident, verb) {
if(typeof conv_mode == typeof undefined)
conv_mode = '';
- $.get('like/' + ident.toString() + '?verb=' + verb + '&conv_mode=' + conv_mode, function (data) {
+ if(typeof page_mode == typeof undefined)
+ page_mode = '';
+
+ $.get('like/' + ident.toString() + '?verb=' + verb + '&conv_mode=' + conv_mode + '&page_mode=' + page_mode, function (data) {
if(data.success) {
// this is a bit tricky since the top level thread wrapper wraps the whole thread
if($('#thread-wrapper-' + data.orig_id).hasClass('toplevel_item')) {
diff --git a/view/tpl/build_query.tpl b/view/tpl/build_query.tpl
index 83e756367..af70a9595 100755
--- a/view/tpl/build_query.tpl
+++ b/view/tpl/build_query.tpl
@@ -1,4 +1,4 @@
-<script>
+<script>
var bParam_cmd = "{{$baseurl}}/update/{{$pgtype}}";
@@ -6,6 +6,10 @@
var conv_mode = '{{$conv_mode}}';
{{/if}}
+ {{if $page_mode}}
+ var page_mode = '{{$page_mode}}';
+ {{/if}}
+
var bParam_uid = {{$uid}};
var bParam_gid = {{$gid}};
var bParam_cid = {{$cid}};