Skip to content

Commit

Permalink
Revert "Created tests to verify onPinClicked functionality"
Browse files Browse the repository at this point in the history
This reverts commit d0fe310.
  • Loading branch information
Jdwashin9 committed Feb 11, 2025
1 parent 05e584b commit 77321df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 86 deletions.
8 changes: 3 additions & 5 deletions public/src/client/topic/postTools.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@


'use strict';


Expand Down Expand Up @@ -123,7 +121,7 @@ define('forum/topic/postTools', [
});

$('.topic').on('click', '[component="topic/reply-as-topic"]', function () {
translator.translate([`topic:link-back, ${ajaxify.data.titleRaw}, ${config.relative_path}/topic/${ajaxify.data.slug}`], function (body) {
translator.translate(`[[topic:link-back, ${ajaxify.data.titleRaw}, ${config.relative_path}/topic/${ajaxify.data.slug}]]`, function (body) {
hooks.fire('action:composer.topic.new', {
cid: ajaxify.data.cid,
body: body,
Expand Down Expand Up @@ -423,7 +421,7 @@ define('forum/topic/postTools', [
}

async function postAction(action, pid) {
({ action } = await hooks.fire(`post.${action}`, { action, pid }));
({ action } = await hooks.fire(`static:post.${action}`, { action, pid }));
if (!action) {
return;
}
Expand Down Expand Up @@ -477,7 +475,7 @@ define('forum/topic/postTools', [
label: '[[topic:stale.create]]',
className: 'btn-primary',
callback: function () {
translator.translate([`topic:link-back, ${ajaxify.data.title}, ${config.relative_path}/topic/${ajaxify.data.slug}`], function (body) {
translator.translate(`[[topic:link-back, ${ajaxify.data.title}, ${config.relative_path}/topic/${ajaxify.data.slug}]]`, function (body) {
hooks.fire('action:composer.topic.new', {
cid: ajaxify.data.cid,
body: body,
Expand Down
81 changes: 0 additions & 81 deletions public/src/tests/onPinClicked.test.js

This file was deleted.

0 comments on commit 77321df

Please sign in to comment.