diff --git a/public/admin.js b/public/admin.js index 53fd658..0a9aa8a 100644 --- a/public/admin.js +++ b/public/admin.js @@ -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; -}); \ No newline at end of file +});