From e4c7d29b4ff6e9b0badbc21dd96e4fcef5d56f32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Thu, 16 Dec 2021 22:04:12 -0500 Subject: [PATCH] feat: use route for id --- public/modules/quickreply.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/modules/quickreply.js b/public/modules/quickreply.js index 41e0dfc..f1a02d8 100644 --- a/public/modules/quickreply.js +++ b/public/modules/quickreply.js @@ -28,7 +28,7 @@ define('persona/quickreply', [ // $('.textcomplete-wrapper').css('height', '100%').find('textarea').css('height', '100%'); var ready = true; - components.get('topic/quickreply/button').on('click', function(e) { + components.get('topic/quickreply/button').on('click', function (e) { e.preventDefault(); if (!ready) { return; @@ -54,7 +54,7 @@ define('persona/quickreply', [ message: data.message, timeout: 10000, clickfn: function () { - ajaxify.go(`/post-queue#${data.id}`); + ajaxify.go(`/post-queue/${data.id}`); }, }); }