From: ivan Date: Thu, 17 Feb 2005 08:44:17 +0000 (+0000) Subject: generalize progressbar code in preparation for using it wherever needed X-Git-Tag: BEFORE_FINAL_MASONIZE~704 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=9e1ec0694dff61d375af8c0ef0e3895a7f1e07fd generalize progressbar code in preparation for using it wherever needed --- diff --git a/httemplate/edit/rate.cgi b/httemplate/edit/rate.cgi index 4a0294033..1c5d61dc5 100644 --- a/httemplate/edit/rate.cgi +++ b/httemplate/edit/rate.cgi @@ -58,13 +58,14 @@ function process () { //jsrsExecute( 'process/rate.cgi', myCallback, 'process_rate', Hash ); jsrsExecute( 'process/rate.cgi', myCallback, 'start_job', Hash ); - function myCallback( jobnum ) { - var progressWindow = window.open('../../misc/progress.html?jobnum=' + jobnum + ';url=<%=$p%>browse/rate.cgi', 'progressWindow', 'toolbar=no,location=no,directories=no,scrollbars=no,menubar=no,status=no,width=420,height=128'); - progressWindow.opener = self; - //progressWindow.opener = document; - } +} +function myCallback( jobnum ) { + var progressWindow = window.open('../../misc/progress.html?jobnum=' + jobnum + ';url=<%=$p%>browse/rate.cgi', 'progressWindow', 'toolbar=no,location=no,directories=no,scrollbars=no,menubar=no,status=no,width=420,height=128'); + progressWindow.opener = self; + //progressWindow.opener = document; } +