From 48a7bb620d4e89435bde6be5bb6fb98b8f939798 Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Sun, 1 Sep 2013 22:48:35 -0700 Subject: [PATCH] Move the JS that re-enables opt textbox fields to the end of the form, so that it has access to the correct state https://sourceforge.net/p/webadmin/bugs/4293/ --- ui-lib.pl | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ui-lib.pl b/ui-lib.pl index 4aee5c658..62fbb9ee8 100755 --- a/ui-lib.pl +++ b/ui-lib.pl @@ -659,6 +659,14 @@ if ($buttons && @$buttons) { $rv .= "\n"; } $rv .= "\n"; +# When going back to a form, re-enable any text fields generated by +# ui_opt_textbox that aren't in the default state. +$rv .= "\n"; return $rv; } @@ -1230,7 +1238,6 @@ $rv .= "\n"; -$rv .= "\n"; return $rv; }