admin/extend JS translations and misc

This commit is contained in:
Peter Jaszkowiak
2016-12-08 17:14:40 -07:00
committed by Julian Lam
parent 38eba81933
commit 95bef8f3f6
9 changed files with 96 additions and 68 deletions

View File

@@ -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
});
}