[phpcvsview-cvs-updates] phpcvsview phpcvsview.js,1.2,1.3
Status: Pre-Alpha
Brought to you by:
bcheesem
From: Brian C. <bch...@us...> - 2005-02-01 07:16:31
|
Update of /cvsroot/phpcvsview/phpcvsview In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10878 Modified Files: phpcvsview.js Log Message: Updated the javascript checking for the revisions to get them in the correct order for presenting to the CVS server. Index: phpcvsview.js =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/phpcvsview.js,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** phpcvsview.js 23 Jan 2005 04:56:09 -0000 1.2 --- phpcvsview.js 1 Feb 2005 07:16:21 -0000 1.3 *************** *** 18,22 **** var ddRev1=form.DiffRev1.value; var ddRev2=form.DiffRev2.value; ! if (ddRev1 > ddRev2) { // Swap the values. --- 18,22 ---- var ddRev1=form.DiffRev1.value; var ddRev2=form.DiffRev2.value; ! if (form.DiffRev1.selectedIndex < form.DiffRev2.selectedIndex) { // Swap the values. *************** *** 32,35 **** --- 32,36 ---- { var dfDiffReq=form.URLDiffReq.value; + alert('Redirecting to: '+dfDiffReq+'&r1='+ddRev1+'&r2='+ddRev2+'&df'); location=dfDiffReq+'&r1='+ddRev1+'&r2='+ddRev2+'&df'; } |