From 964a947a77f77ef161735453a1ab68de88890dbd Mon Sep 17 00:00:00 2001 From: wilpig Date: Wed, 8 Aug 2018 09:33:15 -0500 Subject: [PATCH] Fixing coding style to match #1064 #1063 --- configuration.php | 20 ++++++++------------ rackrequest.php | 3 +-- 2 files changed, 9 insertions(+), 14 deletions(-) diff --git a/configuration.php b/configuration.php index 1427215ea..c9cfbfeba 100644 --- a/configuration.php +++ b/configuration.php @@ -452,18 +452,14 @@ function formatOffset($offset) { var value_to_set = $(this).parent().next().children('span').text(); // Only for selects, try to assign an existing option, so to avoid to default to an empty value that cannot be saved - if (a.is("select")) - { - a.find('option').each(function () - { - if ($(this).val().toLowerCase() === value_to_set.toLowerCase()) - { - value_to_set = $(this).val(); - } - }); - } - - a.val(value_to_set); + if (a.is("select")){ + a.find('option').each(function (){ + if ($(this).val().toLowerCase() === value_to_set.toLowerCase()){ + value_to_set = $(this).val(); + } + }); + } + a.val(value_to_set); if(a.hasClass('color-picker')){ a.minicolors('value', $(this).parent().next().children('span').text()).trigger('change'); diff --git a/rackrequest.php b/rackrequest.php index a75ce3214..57dd6d91a 100644 --- a/rackrequest.php +++ b/rackrequest.php @@ -198,8 +198,7 @@ } // When opening a new request, set the default value for the "Requestor" field's