From 1ee6d09aa6580f5c69da1b4cd3d31b0c34fa1371 Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Tue, 8 Mar 2016 09:32:31 +0545 Subject: Improve track6-prefix-id handling 1) The var $iface is not set at lines 2457 or 2464. It is a var that was used higher up local to build_ipv6interface_list() - it is not relevant to the single fields track6-prefix-id--hex and track6-prefix-id-max 2) When the user selects a different track6-interface then trigger update_track6_prefix() which will update the help text track6-prefix-id-range. Related to forum https://forum.pfsense.org/index.php?topic=107962.msg601309#msg601309 This pull request does not directly address the reported issue of the track6-prefix-id not "taking". It just fixes up some code issues that I noticed. --- src/usr/local/www/interfaces.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/usr/local/www/interfaces.php') diff --git a/src/usr/local/www/interfaces.php b/src/usr/local/www/interfaces.php index 0ff4ce2..a8a0f22 100644 --- a/src/usr/local/www/interfaces.php +++ b/src/usr/local/www/interfaces.php @@ -2454,14 +2454,14 @@ if ($pconfig['track6-prefix-id'] == "") { } $section->addInput(new Form_Input( - 'track6-prefix-id--hex' . $iface, + 'track6-prefix-id--hex', 'IPv6 Prefix ID', 'text', sprintf("%x", $pconfig['track6-prefix-id']) ))->setHelp('The value in this field is the (Delegated) IPv6 prefix ID. This determines the configurable network ID based on the dynamic IPv6 connection. The default value is 0.'); $section->addInput(new Form_Input( - 'track6-prefix-id-max' . $iface, + 'track6-prefix-id-max', null, 'hidden', 0 @@ -3622,6 +3622,10 @@ events.push(function() { updateTypeSix(this.value); }); + $('#track6-interface').on('change', function() { + update_track6_prefix(); + }); + $('#pppoe-reset-type').on('change', function() { show_reset_settings(this.value); }); -- cgit v1.1