mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-24 01:10:31 +01:00
admin/extend JS translations and misc
This commit is contained in:
committed by
Julian Lam
parent
38eba81933
commit
95bef8f3f6
@@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
/* global define, app, socket */
|
||||
/* global define, app, socket, bootbox */
|
||||
|
||||
define('admin/extend/widgets', ['jqueryui'], function (jqueryui) {
|
||||
var Widgets = {};
|
||||
@@ -61,7 +61,7 @@ define('admin/extend/widgets', ['jqueryui'], function (jqueryui) {
|
||||
}).on('click', '.delete-widget', function () {
|
||||
var panel = $(this).parents('.widget-panel');
|
||||
|
||||
bootbox.confirm('Are you sure you wish to delete this widget?', function (confirm) {
|
||||
bootbox.confirm('[[admin/extend/widgets:alert.confirm-delete]]', function (confirm) {
|
||||
if (confirm) {
|
||||
panel.remove();
|
||||
}
|
||||
@@ -125,8 +125,8 @@ define('admin/extend/widgets', ['jqueryui'], function (jqueryui) {
|
||||
app.alert({
|
||||
alert_id: 'admin:widgets',
|
||||
type: 'success',
|
||||
title: 'Widgets Updated',
|
||||
message: 'Successfully updated widgets',
|
||||
title: '[[admin/extend/widgets:alert.updated]]',
|
||||
message: '[[admin/extend/widgets:alert.update-success]]',
|
||||
timeout: 2500
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user