|
|
|
@ -102,6 +102,7 @@ define('admin/settings', ['uploader'], function (uploader) {
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
handleUploads();
|
|
|
|
|
setupTagsInput();
|
|
|
|
|
|
|
|
|
|
$('#clear-sitemap-cache').off('click').on('click', function () {
|
|
|
|
|
socket.emit('admin.settings.clearSitemapCache', function () {
|
|
|
|
@ -142,6 +143,13 @@ define('admin/settings', ['uploader'], function (uploader) {
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function setupTagsInput() {
|
|
|
|
|
$('[data-field-type="tagsinput"]').tagsinput({
|
|
|
|
|
confirmKeys: [13, 44],
|
|
|
|
|
trimValue: true,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Settings.remove = function (key) {
|
|
|
|
|
socket.emit('admin.config.remove', key);
|
|
|
|
|
};
|
|
|
|
|