fix: `action:admin.settingsLoaded` to use new hooks lib

v1.18.x
Julian Lam 4 years ago
parent b0f5d5a594
commit 5131eb6b90

@ -1,7 +1,7 @@
'use strict';
define('settings', function () {
define('settings', ['hooks'], function (hooks) {
var DEFAULT_PLUGINS = [
'settings/checkbox',
'settings/number',
@ -501,7 +501,7 @@ define('settings', function () {
$(formEl).find('input[type="checkbox"]').each(function () {
$(this).parents('.mdl-switch').toggleClass('is-checked', $(this).is(':checked'));
});
$(window).trigger('action:admin.settingsLoaded');
hooks.fire('action:admin.settingsLoaded');
// Handle unsaved changes
$(formEl).on('change', 'input, select, textarea', function () {

Loading…
Cancel
Save