mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-11 16:35:47 +01:00
discard language string
This commit is contained in:
@@ -8,5 +8,6 @@
|
|||||||
"chat.see_all": "See all Chats",
|
"chat.see_all": "See all Chats",
|
||||||
|
|
||||||
"composer.user_said_in": "%1 said in %2:\n",
|
"composer.user_said_in": "%1 said in %2:\n",
|
||||||
"composer.user_said": "%1 said:\n"
|
"composer.user_said": "%1 said:\n",
|
||||||
|
"composer.discard": "Are you sure you wish to discard this post?"
|
||||||
}
|
}
|
||||||
@@ -63,8 +63,6 @@ define('forum/users', function() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
ajaxify.loadTemplate('users', function(usersTemplate) {
|
ajaxify.loadTemplate('users', function(usersTemplate) {
|
||||||
var html = templates.parse(templates.getBlock(usersTemplate, 'users'), data);
|
var html = templates.parse(templates.getBlock(usersTemplate, 'users'), data);
|
||||||
|
|
||||||
|
|||||||
@@ -237,15 +237,18 @@ define('composer', dependencies, function(taskbar, controls, uploads, formatting
|
|||||||
});
|
});
|
||||||
|
|
||||||
postContainer.on('click', '.action-bar button[data-action="discard"]', function() {
|
postContainer.on('click', '.action-bar button[data-action="discard"]', function() {
|
||||||
if (composer.posts[post_uuid].modified) {
|
if (!composer.posts[post_uuid].modified) {
|
||||||
bootbox.confirm('Are you sure you wish to discard this post?', function(confirm) {
|
discard(post_uuid);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
translator.translate('[[modules:composer.discard]]', function(translated) {
|
||||||
|
bootbox.confirm(translated, function(confirm) {
|
||||||
if (confirm) {
|
if (confirm) {
|
||||||
discard(post_uuid);
|
discard(post_uuid);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
});
|
||||||
discard(post_uuid);
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
postContainer.find('.nav-tabs a').click(function (e) {
|
postContainer.find('.nav-tabs a').click(function (e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user