refactor: dont use app.alert

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

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

Loading…
Cancel
Save