From b2df82d8bca9b753233ad5073575c129fc9a7a83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sverre=20Johan=20T=C3=B8vik?= Date: Mon, 15 Aug 2022 12:51:49 +0200 Subject: [PATCH] Fix bug where SNMPv3 options shown for v1/v2 node When the node edit dialog was opened for a new node, or a node configured with v1 or v2c, some v3 options would be shown. Switch the order of "change" handler triggering to fix the issue. (Previously, the "version" handler would first hide all the v3 options, then the "security_level" handler would show the appropriate fields for the selected/default security level.) --- gapit-snmp.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gapit-snmp.html b/gapit-snmp.html index 91c5213..5552ff4 100644 --- a/gapit-snmp.html +++ b/gapit-snmp.html @@ -218,8 +218,8 @@ // Doesn't seem to work when called immediately, // so use a timer (even 1 msec seems to work). setTimeout(function() { - $("#node-input-version").triggerHandler("change"); $("#node-input-security_level").triggerHandler("change"); + $("#node-input-version").triggerHandler("change"); }, 1); }, });