diff --git a/view/theme/frio/templates/jot-header.tpl b/view/theme/frio/templates/jot-header.tpl index 8eb76ccc6..bc5b20888 100644 --- a/view/theme/frio/templates/jot-header.tpl +++ b/view/theme/frio/templates/jot-header.tpl @@ -56,7 +56,6 @@ jotTextOpenUI(document.getElementById("profile-jot-text")); }); - /* show images / file browser window * **/ @@ -125,6 +124,24 @@ Dialog.doFileBrowser("main"); jotActive(); }); + + $('body').on('click', '.p-category .filerm', function(e){ + e.preventDefault(); + + let $href = $(e.target).attr('href'); + // Prevents arbitrary Ajax requests + if ($href.substr(0, 7) === 'filerm/') { + $(e.target).parent().removeClass('btn-success btn-danger'); + $.post($href) + .done(function() { + liking = 1; + force_update = true; + }) + .always(function () { + NavUpdate(); + }); + } + }); }); function deleteCheckedItems() { @@ -281,7 +298,6 @@ return false; }); }); - } function jotClearLocation() { diff --git a/view/theme/frio/templates/wall_thread.tpl b/view/theme/frio/templates/wall_thread.tpl index 12b12a2e7..4f2d7e1bc 100644 --- a/view/theme/frio/templates/wall_thread.tpl +++ b/view/theme/frio/templates/wall_thread.tpl @@ -278,12 +278,12 @@ as the value of $top_child_total (this is done at the end of this file) {{$tag nofilter}} {{/foreach*}} {{/if}} - {{foreach $item.folders as $cat}} - {{$cat.name}}{{if $cat.removeurl}} (x) {{/if}} + {{foreach $item.folders as $folder}} + {{$folder.name}}{{if $folder.removeurl}} (x){{/if}} {{/foreach}} {{foreach $item.categories as $cat}} - {{$cat.name}}{{if $cat.removeurl}} (x) {{/if}} + {{$cat.name}}{{if $cat.removeurl}} (x){{/if}} {{/foreach}} {{if $item.edited}}