You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
482 B
JavaScript
24 lines
482 B
JavaScript
'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'
|
|
});
|
|
});
|
|
});
|
|
};
|
|
|
|
return ACP;
|
|
}); |