From b19bf30f0d745d20e5e4f0a8e47ce16a04b02dd9 Mon Sep 17 00:00:00 2001 From: ivan Date: Sat, 2 May 2009 00:02:07 +0000 Subject: finish up useful agent stuff on the config editor: adding, deleting overrides too. also add a confirmation to override deletion from the agent browse page. RT#5218 --- httemplate/config/config-process.cgi | 3 +++ 1 file changed, 3 insertions(+) (limited to 'httemplate/config/config-process.cgi') diff --git a/httemplate/config/config-process.cgi b/httemplate/config/config-process.cgi index a5918c035..f8b64e86f 100644 --- a/httemplate/config/config-process.cgi +++ b/httemplate/config/config-process.cgi @@ -66,6 +66,9 @@ $conf->delete($_, $agentnum) foreach @delete; % my $n = 0; % foreach my $type ( ref($i->type) ? @{$i->type} : $i->type ) { var configCell = window.top.document.getElementById('<% $agentnum. $i->key. $n %>'); + if ( ! configCell ) { + window.top.location.reload(); + } //alert('found cell ' + configCell); % if ( $type eq 'textarea' % || $type eq 'editlist' -- cgit v1.2.1