From 3db51e506460806347ee0db162c59648d0d242fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Mon, 6 Dec 2021 12:52:41 -0500 Subject: [PATCH] refactor: dont use app.alert --- public/admin.js | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) 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 +});