From 3b91ad2188fb691fd2833a6a668847efb169f7d8 Mon Sep 17 00:00:00 2001
From: steve-lad <72376554+steve-lad@users.noreply.github.com>
Date: Wed, 30 Jun 2021 14:27:39 +0200
Subject: [PATCH] Update JS
Default settings for customise are chan-sccp settings
Include QOS page group
Change help text
---
Sccp_manager.class.php | 2 +-
assets/js/sccp_manager.js | 1 -
conf/sccpgeneral.xml.v433 | 2 +-
3 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/Sccp_manager.class.php b/Sccp_manager.class.php
index c6f78a9..ffe6572 100644
--- a/Sccp_manager.class.php
+++ b/Sccp_manager.class.php
@@ -169,7 +169,7 @@ class Sccp_manager extends \FreePBX_Helpers implements \BMO {
if ((array) $this->xml_data) {
foreach ($this->xml_data->xpath('//page_group[@name="' . $group_name . '"]') as $item) {
// TODO: Clean up below after debug
- if ($group_name == 'sccp_general') {
+ if (($group_name == 'sccp_general') || ($group_name == 'sccp_qos_config')) {
$htmlret = load_view(__DIR__ . '/views/formShowSysDefs.php', array(
'itm' => $item,
'h_show' => $show_Header,
diff --git a/assets/js/sccp_manager.js b/assets/js/sccp_manager.js
index d50ea42..5ea8f4c 100644
--- a/assets/js/sccp_manager.js
+++ b/assets/js/sccp_manager.js
@@ -1088,7 +1088,6 @@ $(".sccp-edit").click(function() {
if ($(this).is(":checked")) {
edit_style.display = 'block';
input.prop("readonly", false);
- input.val(input.data("custom"));
input.focus();
} else {
edit_style.display = 'none';
diff --git a/conf/sccpgeneral.xml.v433 b/conf/sccpgeneral.xml.v433
index c777dcb..5cfe3dc 100644
--- a/conf/sccpgeneral.xml.v433
+++ b/conf/sccpgeneral.xml.v433
@@ -1170,7 +1170,7 @@ and open the template in the editor. Base Version before all crash :-)
/tftpbootsccp-custom
- Path to tftp home directory
+ Path to tftp home directory. This was determined by the Sccp_manager installer and should only be changed if the tftp root has been modified since installation