Skip to content

Commit

Permalink
Fix bug where SNMPv3 options shown for v1/v2 node
Browse files Browse the repository at this point in the history
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.)
  • Loading branch information
Sverre Johan Tøvik committed Aug 15, 2022
1 parent 48a44d1 commit b2df82d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gapit-snmp.html
Original file line number Diff line number Diff line change
Expand Up @@ -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);
},
});
Expand Down

0 comments on commit b2df82d

Please sign in to comment.