|
|
@ -1,22 +1,13 @@
|
|
|
|
'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'
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|