From: Joseph Lewis Date: Wed, 15 Jun 2011 17:46:33 +0000 (-0600) Subject: Got rid of old bug (pre me) that existed when an autowidget was used then X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=1f625985a72f18f79d638fee580b6aed9da47153;p=evergreen%2Fmasslnc.git Got rid of old bug (pre me) that existed when an autowidget was used then canceled and the next setting wasn't an autowidget. The autowidget would continue to appear because it was never destroyed. Signed-off-by: Joseph Lewis Signed-off-by: Thomas Berezansky Signed-off-by: Jason Etheridge --- diff --git a/Open-ILS/xul/staff_client/server/admin/org_unit_settings.js b/Open-ILS/xul/staff_client/server/admin/org_unit_settings.js index 9f72069256..1559c1c6c7 100644 --- a/Open-ILS/xul/staff_client/server/admin/org_unit_settings.js +++ b/Open-ILS/xul/staff_client/server/admin/org_unit_settings.js @@ -379,6 +379,12 @@ function osLaunchEditor(name) { var fmClass = osSettings[name].fm_class; + if(osEditAutoWidget) { + osEditAutoWidget.domNode.parentNode.removeChild(osEditAutoWidget.domNode); + osEditAutoWidget.destroy(); + osEditAutoWidget = null; + } + if(fmClass) { if(osEditAutoWidget) {