diff options
-rwxr-xr-x | httemplate/edit/process/cust_main_note.cgi | 8 | ||||
-rwxr-xr-x | httemplate/view/cust_main/notes.html | 4 |
2 files changed, 4 insertions, 8 deletions
diff --git a/httemplate/edit/process/cust_main_note.cgi b/httemplate/edit/process/cust_main_note.cgi index 9689ca6d6..5127c72d1 100755 --- a/httemplate/edit/process/cust_main_note.cgi +++ b/httemplate/edit/process/cust_main_note.cgi @@ -2,17 +2,11 @@ % $cgi->param('error', $error); <% $cgi->redirect(popurl(2). 'cust_main_note.cgi?'. $cgi->query_string ) %> %} else { -% <% header('Note ' . ($notenum ? 'updated' : 'added') ) %> <SCRIPT TYPE="text/javascript"> - parent.cust_main_notes.location.reload(); - try{parent.cust_main_notes.cClick()} - catch(err){} - try{parent.cClick()} - catch(err){} + window.top.location.reload(); </SCRIPT> </BODY></HTML> -% % } <%init> diff --git a/httemplate/view/cust_main/notes.html b/httemplate/view/cust_main/notes.html index 4c97c9f64..f7b4ddb30 100755 --- a/httemplate/view/cust_main/notes.html +++ b/httemplate/view/cust_main/notes.html @@ -6,7 +6,9 @@ <TR> <TH CLASS="grid" BGCOLOR="#cccccc">Date</TH> - <TH CLASS="grid" BGCOLOR="#cccccc">Time</TH> +% if ( $conf->exists('cust_main_note-display_times') ) { + <TH CLASS="grid" BGCOLOR="#cccccc">Time</TH> +% } <TH CLASS="grid" BGCOLOR="#cccccc">Person</TH> <TH CLASS="grid" BGCOLOR="#cccccc">Note</TH> </TR> |