refactor: dont use app.alert

main
Barış Soner Uşaklı 3 years ago
parent 5838fc4ed4
commit 3db51e5064

@ -1,24 +1,15 @@
'use strict'; 'use strict';
/* globals $, app */
define('admin/plugins/persona', ['settings'], function(Settings) {
define('admin/plugins/persona', ['settings'], function (Settings) {
var ACP = {}; var ACP = {};
ACP.init = function() { ACP.init = function () {
Settings.load('persona', $('.persona-settings')); Settings.load('persona', $('.persona-settings'));
$('#save').on('click', function() { $('#save').on('click', function () {
Settings.save('persona', $('.persona-settings'), function() { Settings.save('persona', $('.persona-settings'));
app.alert({
type: 'success',
alert_id: 'persona-saved',
title: 'Settings Saved',
message: 'Persona settings saved'
});
});
}); });
}; };
return ACP; return ACP;
}); });

Loading…
Cancel
Save