From cd67c9d4563fdd8b0ea9ba6c680e9f4fb9c4ecbc Mon Sep 17 00:00:00 2001 From: Atlante45 Date: Wed, 8 Oct 2014 11:40:43 -0700 Subject: [PATCH] Removed console logs --- domain-server/resources/web/js/settings.js | 13 +++++-------- domain-server/src/DomainServerSettingsManager.cpp | 8 ++------ 2 files changed, 7 insertions(+), 14 deletions(-) diff --git a/domain-server/resources/web/js/settings.js b/domain-server/resources/web/js/settings.js index 0bccdacfb0..fc6b664359 100644 --- a/domain-server/resources/web/js/settings.js +++ b/domain-server/resources/web/js/settings.js @@ -84,7 +84,7 @@ $(document).ready(function(){ $('#settings-form').on('click', '.add-row', function(){ var row = $(this).parents("tr") - var row-data = row.parent().children(".row-data") + var data = row.parent().children(".row-data") // Check key spaces var name = row.children(".key").children("input").val() @@ -94,7 +94,7 @@ $(document).ready(function(){ } // Check keys with the same name var equals = false; - _.each(row-data.children(".key"), function(element) { + _.each(data.children(".key"), function(element) { if ($(element).text() === name) { equals = true return @@ -125,7 +125,7 @@ $(document).ready(function(){ _.each(row.children(), function(element) { if ($(element).hasClass("number")) { // Index row - var numbers = row-data.children(".number") + var numbers = data.children(".number") if (numbers.length > 0) { $(element).html(parseInt(numbers.last().text()) + 1) } else { @@ -134,10 +134,7 @@ $(document).ready(function(){ } else if ($(element).hasClass("buttons")) { // Change buttons var prevSpan = $(element).parent().prev().children(".buttons").children("span") var span = $(element).children("span") - console.log(prevSpan.length) - console.log(span.length) if (prevSpan.hasClass("del-row")) { - console.log("Switching icons") span.removeClass("glyphicon-ok add-row") span.addClass("glyphicon-remove del-row") } else { @@ -308,7 +305,7 @@ function makeTable(setting, setting_name, setting_value) { } html += "" + name + "" _.each(setting.columns, function(col) { - html += "" + html += "" if (row.hasOwnProperty(col.name)) { html += row[col.name] } @@ -343,7 +340,7 @@ function makeTableInputs(setting) { \ " _.each(setting.columns, function(col) { - html += "\ + html += "\ \ " }) diff --git a/domain-server/src/DomainServerSettingsManager.cpp b/domain-server/src/DomainServerSettingsManager.cpp index 5fcc7a8f82..c0366157db 100644 --- a/domain-server/src/DomainServerSettingsManager.cpp +++ b/domain-server/src/DomainServerSettingsManager.cpp @@ -279,9 +279,7 @@ void DomainServerSettingsManager::updateSetting(const QString& key, const QJsonV QVariantMap& thisMap = *reinterpret_cast(settingMap[key].data()); foreach(const QString childKey, newValue.toObject().keys()) { - updateSetting(childKey, newValue.toObject()[childKey], - thisMap, - settingDescription.toObject()[key]); + updateSetting(childKey, newValue.toObject()[childKey], thisMap, settingDescription.toObject()[key]); } if (settingMap[key].toMap().isEmpty()) { @@ -310,9 +308,7 @@ void DomainServerSettingsManager::recurseJSONObjectAndOverwriteSettings(const QJ QJsonValue thisDescription; if (settingExists(groupKey, settingKey, descriptionArray, thisDescription)) { QVariantMap& thisMap = *reinterpret_cast(settingsVariant[groupKey].data()); - updateSetting(settingKey, settingValue, - thisMap, - thisDescription); + updateSetting(settingKey, settingValue, thisMap, thisDescription); } }