fixed up translation strings, closed #1278

This commit is contained in:
Julian Lam
2014-04-02 10:29:42 -04:00
parent fa6d6816e4
commit ef47fc78eb
3 changed files with 27 additions and 15 deletions

View File

@@ -15,11 +15,14 @@ define(['forum/topic/fork', 'forum/topic/move'], function(fork, move) {
$('.delete_thread').on('click', function(e) {
var command = threadState.deleted !== '1' ? 'delete' : 'restore';
bootbox.confirm('Are you sure you want to ' + command + ' this thread?', function(confirm) {
if (confirm) {
socket.emit('topics.' + command, tid);
}
translator.translate('[[topic:thread_tools.' + command + '_confirm]]', function(msg) {
bootbox.confirm(msg, function(confirm) {
if (confirm) {
socket.emit('topics.' + command, tid);
}
});
});
return false;
});