From 089769c107805b5e24179f1d814e821dcf0bfc64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Fri, 2 Feb 2018 09:41:58 -0500 Subject: [PATCH] closes #6302 --- public/src/modules/settings.js | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/public/src/modules/settings.js b/public/src/modules/settings.js index 5dfa5def2e..f891ea2ae4 100644 --- a/public/src/modules/settings.js +++ b/public/src/modules/settings.js @@ -457,19 +457,6 @@ define('settings', function () { return callback(err); } - // Parse all values. If they are json, return json - for (var key in values) { - if (values.hasOwnProperty(key)) { - try { - if (!utils.isNumber(values[key])) { - values[key] = JSON.parse(values[key]); - } - } catch (e) { - // Leave the value as is - } - } - } - // Save loaded settings into ajaxify.data for use client-side ajaxify.data.settings = values; @@ -500,12 +487,6 @@ define('settings', function () { } }); - // Normalizing value of multiple selects - formEl.find('select[multiple]').each(function (idx, selectEl) { - selectEl = $(selectEl); - values[selectEl.attr('name')] = JSON.stringify(selectEl.val()); - }); - socket.emit('admin.settings.set', { hash: hash, values: values,