v1.18.x
psychobunny 9 years ago
parent 4a12a06745
commit a0a98e64b7

@ -125,7 +125,8 @@
"stale.warning": "The topic you are replying to is quite old. Would you like to create a new topic instead, and reference this one in your reply?", "stale.warning": "The topic you are replying to is quite old. Would you like to create a new topic instead, and reference this one in your reply?",
"stale.create": "Create a new topic", "stale.create": "Create a new topic",
"stale.reply_anyway": "Reply to this topic anyway", "stale.reply_anyway": "Reply to this topic anyway",
"stale.link_back": "Re: [%1](%2)\n\n",
"link_back": "Re: [%1](%2)\n\n",
"spam": "Spam", "spam": "Spam",
"offensive": "Offensive", "offensive": "Offensive",

@ -115,8 +115,11 @@ define('forum/topic/postTools', ['share', 'navigator', 'components', 'translator
}); });
$('.topic').on('click', '[component="topic/reply-as-topic"]', function() { $('.topic').on('click', '[component="topic/reply-as-topic"]', function() {
translator.translate('[[topic:link_back, ' + ajaxify.data.title + ', ' + config.relative_path + '/topic/' + ajaxify.data.slug + ']]', function(body) {
$(window).trigger('action:composer.topic.new', { $(window).trigger('action:composer.topic.new', {
cid: ajaxify.data.cid, cid: ajaxify.data.cid,
body: body
});
}); });
}); });
@ -434,7 +437,7 @@ define('forum/topic/postTools', ['share', 'navigator', 'components', 'translator
label: '[[topic:stale.create]]', label: '[[topic:stale.create]]',
className: 'btn-primary', className: 'btn-primary',
callback: function() { callback: function() {
translator.translate('[[topic:stale.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) {
$(window).trigger('action:composer.topic.new', { $(window).trigger('action:composer.topic.new', {
cid: ajaxify.data.cid, cid: ajaxify.data.cid,
body: body body: body

Loading…
Cancel
Save