refactor: dont use app.alert
parent
5838fc4ed4
commit
3db51e5064
@ -1,24 +1,15 @@
|
||||
'use strict';
|
||||
/* globals $, app */
|
||||
|
||||
define('admin/plugins/persona', ['settings'], function(Settings) {
|
||||
|
||||
define('admin/plugins/persona', ['settings'], function (Settings) {
|
||||
var ACP = {};
|
||||
|
||||
ACP.init = function() {
|
||||
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'
|
||||
});
|
||||
});
|
||||
$('#save').on('click', function () {
|
||||
Settings.save('persona', $('.persona-settings'));
|
||||
});
|
||||
};
|
||||
|
||||
return ACP;
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue