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.
25 lines
499 B
JavaScript
25 lines
499 B
JavaScript
'use strict';
|
|
|
|
|
|
define('admin/settings/cookies', [
|
|
'admin/modules/colorpicker',
|
|
], function (colorpicker) {
|
|
var Module = {};
|
|
|
|
Module.init = function () {
|
|
colorpicker.enable($('[data-colorpicker="1"]'));
|
|
|
|
$('#delete-all-sessions').on('click', function () {
|
|
socket.emit('admin.deleteAllSessions', function (err) {
|
|
if (err) {
|
|
return app.alertError(err.message);
|
|
}
|
|
window.location.href = config.relative_path + '/login';
|
|
});
|
|
return false;
|
|
});
|
|
};
|
|
|
|
return Module;
|
|
});
|