summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xhttemplate/edit/process/cust_main_note.cgi7
-rwxr-xr-xhttemplate/view/cust_main.cgi2
-rwxr-xr-xhttemplate/view/cust_main/notes.html8
3 files changed, 9 insertions, 8 deletions
diff --git a/httemplate/edit/process/cust_main_note.cgi b/httemplate/edit/process/cust_main_note.cgi
index 2de9b7f57..8b9105bd8 100755
--- a/httemplate/edit/process/cust_main_note.cgi
+++ b/httemplate/edit/process/cust_main_note.cgi
@@ -40,9 +40,12 @@
%
<% header('Note ' . ($notenum ? 'updated' : 'added') ) %>
<SCRIPT TYPE="text/javascript">
- window.top.location.reload();
+ parent.cust_main_notes.location.reload();
+ try{parent.cust_main_notes.cClick()}
+ catch(err){}
+ try{parent.cClick()}
+ catch(err){}
</SCRIPT>
-
</BODY></HTML>
%
%
diff --git a/httemplate/view/cust_main.cgi b/httemplate/view/cust_main.cgi
index fa3de92f0..3c66df1a7 100755
--- a/httemplate/view/cust_main.cgi
+++ b/httemplate/view/cust_main.cgi
@@ -138,7 +138,7 @@ Comments
% }else{ # make firefox happy wrt POSTDATA
-<iframe src="<% $p %>view/cust_main/notes.html?custnum=<% $cust_main->custnum %>" height="18" width="6" name="cust_main_notes" frameborder="0" marginborder="0" marginheight="0" scrolling="auto">
+<iframe src="<% $p %>view/cust_main/notes.html?custnum=<% $cust_main->custnum %>" height="24" width="616" name="cust_main_notes" frameborder="0" marginborder="0" marginheight="0" scrolling="auto">
<div><br>[iframe not supported]<br><br></div>
</iframe>
diff --git a/httemplate/view/cust_main/notes.html b/httemplate/view/cust_main/notes.html
index 75bf30e41..f10eccf57 100755
--- a/httemplate/view/cust_main/notes.html
+++ b/httemplate/view/cust_main/notes.html
@@ -9,8 +9,6 @@
% my $cust_main = qsearchs('cust_main', {'custnum' => $custnum} );
% die "Custimer not found!" unless $cust_main;
%
-% my (@notes) = $cust_main->notes();
-% if ( scalar(@notes) ) {
<STYLE TYPE="text/css">
@@ -21,6 +19,9 @@ body { background: #e8e8e8 }
</STYLE>
+% my (@notes) = $cust_main->notes();
+% if ( scalar(@notes) ) {
+
<SCRIPT TYPE="text/javascript" SRC="/elements/overlibmws.js"></SCRIPT>
<SCRIPT TYPE="text/javascript" SRC="/elements/overlibmws_iframe.js"></SCRIPT>
<SCRIPT TYPE="text/javascript" SRC="/elements/overlibmws_crossframe.js"></SCRIPT>
@@ -28,7 +29,6 @@ body { background: #e8e8e8 }
<TABLE CLASS="inv" CELLSPACING=0 CELLPADDING=0 BORDER=0 >
-%#<% include('/elements/table-grid.html') %>
% my $bgcolor1 = '#eeeeee';
% my $bgcolor2 = '#ffffff';
% my $bgcolor = '';
@@ -71,9 +71,7 @@ body { background: #e8e8e8 }
% } #end display notes
</TABLE>
-% } else {
-<BR>
% }
%
%#subroutines