diff options
author | jeff <jeff> | 2006-11-26 23:06:37 +0000 |
---|---|---|
committer | jeff <jeff> | 2006-11-26 23:06:37 +0000 |
commit | 88a07a3c2aac1fff33bd1f400ee5c0672ce716a0 (patch) | |
tree | a2dbef9b26afd39da1c8b70f54361fdf292af10c | |
parent | ae3253689aba4912b7308167cad11f10ebb2658a (diff) |
more ajaxy customer notes
-rwxr-xr-x | httemplate/edit/process/cust_main_note.cgi | 7 | ||||
-rwxr-xr-x | httemplate/view/cust_main.cgi | 2 | ||||
-rwxr-xr-x | httemplate/view/cust_main/notes.html | 8 |
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 |