diff --git a/core/default_settings/default_settings.php b/core/default_settings/default_settings.php index 2452666678..464244db6b 100644 --- a/core/default_settings/default_settings.php +++ b/core/default_settings/default_settings.php @@ -214,6 +214,7 @@ else { echo " $('#button_paste').fadeIn(fade_speed);\n"; echo " });"; echo " }"; + echo "\n"; echo " function hide_domains() {\n"; echo " document.getElementById('action').value = '';\n"; echo " $('#button_back').fadeOut(fade_speed);\n"; @@ -225,7 +226,7 @@ else { echo " }\n"; echo "\n"; echo " $( document ).ready(function() {\n"; - echo " // scroll to previous category\n"; + echo " // expand previous category\n"; echo " var category_span_id;\n"; echo " var url = document.location.href;\n"; echo " var hashindex = url.indexOf('#');\n"; @@ -234,7 +235,10 @@ else { echo " category_span_id = url.substr(hashindex + 1);\n"; echo " }\n"; echo " if (category_span_id) {\n"; - echo " $('#page').animate({scrollTop: $('#anchor_'+category_span_id).offset().top - 200}, 'slow');\n"; + echo " $('.first_settings_group').hide();\n"; + echo " $('#settings_'+category_span_id).slideToggle(400, function() {\n"; + echo " $('#page').animate({scrollTop: $('#anchor_'+category_span_id).offset().top - 50}, 'slow');\n"; + echo " });\n"; echo " }\n"; echo " });\n"; echo ""; @@ -312,47 +316,53 @@ else { $row_style["0"] = "row_style0"; $row_style["1"] = "row_style1"; - echo "
| \n";
if ($previous_category != '') {
- echo " ";
- echo " "; - } - echo " \n"; - echo " \n"; - if (strtolower($row['default_setting_category']) == "api") { - echo " API"; - } elseif (strtolower($row['default_setting_category']) == "cdr") { - echo " CDR"; - } elseif (strtolower($row['default_setting_category']) == "ldap") { - echo " LDAP"; + echo " |
| "; + echo " | "; } - echo " | ".$text['label-subcategory']." | "; - echo "".$text['label-type']." | "; - echo "".$text['label-value']." | "; + echo "".$text['label-subcategory']." | "; + echo "".$text['label-type']." | "; + echo "".$text['label-value']." | "; echo "".$text['label-enabled']." | "; - echo "".$text['label-description']." | "; + echo "".$text['label-description']." | "; echo ""; if (permission_exists('default_setting_add')) { echo "".$v_link_label_add.""; @@ -381,7 +391,7 @@ else { echo $row['default_setting_subcategory']; } echo " | ".$row['default_setting_name']." | \n"; - echo "\n"; + echo " | \n"; echo "\n"; echo " ".ucwords($row['default_setting_enabled'])."\n"; echo " | \n"; - echo "".$row['default_setting_description']." | \n"; - echo ""; + echo " | \n"; + echo ""; if (permission_exists('default_setting_edit')) { echo "$v_link_label_edit"; } @@ -450,7 +461,9 @@ else { echo " | \n"; echo "
|---|