feat: use route for id

main
Barış Soner Uşaklı 4 years ago
parent be5ecde3cc
commit e4c7d29b4f

@ -28,7 +28,7 @@ define('persona/quickreply', [
// $('.textcomplete-wrapper').css('height', '100%').find('textarea').css('height', '100%'); // $('.textcomplete-wrapper').css('height', '100%').find('textarea').css('height', '100%');
var ready = true; var ready = true;
components.get('topic/quickreply/button').on('click', function(e) { components.get('topic/quickreply/button').on('click', function (e) {
e.preventDefault(); e.preventDefault();
if (!ready) { if (!ready) {
return; return;
@ -54,7 +54,7 @@ define('persona/quickreply', [
message: data.message, message: data.message,
timeout: 10000, timeout: 10000,
clickfn: function () { clickfn: function () {
ajaxify.go(`/post-queue#${data.id}`); ajaxify.go(`/post-queue/${data.id}`);
}, },
}); });
} }

Loading…
Cancel
Save