Module: nagvis Branch: master Commit: 6e7604b8a67520cc7876b50dceb66e6449d96d0c URL: http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=6e7604b8a67520cc7876b50dceb66e6449d96d0c
Author: Lars Michelsen <[email protected]> Date: Tue Jun 1 09:17:19 2010 +0200 Default values in addmodify dialog are applied again after hiding and displaying depnding fields --- share/frontend/wui/js/wui.js | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/share/frontend/wui/js/wui.js b/share/frontend/wui/js/wui.js index f92c4d3..80c17fe 100644 --- a/share/frontend/wui/js/wui.js +++ b/share/frontend/wui/js/wui.js @@ -623,6 +623,10 @@ function toggleDependingFields(formName, name, value) { && oConfig[sTypeName][sOptName]['depends_value'] == value) { document.getElementById(sFieldName).parentNode.parentNode.style.display = ''; + + // Toggle the value of the field. If empty or just switched the function will + // try to display the default value + toggleDefaultOption(sFieldName); } } } ------------------------------------------------------------------------------ _______________________________________________ Nagvis-checkins mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nagvis-checkins
