[interchange-cvs] interchange - jon modified dist/foundation/pages/results.html

interchange-core@icdevgroup.org interchange-core@icdevgroup.org
Sat Oct 26 11:49:00 2002


User:      jon
Date:      2002-10-26 15:48:38 GMT
Modified:  dist/foundation/pages results.html
Log:
Fix bug #387, problem with [bounce] target coming from [history-scan] when
using browser's Back button:

(begin)
then click hammers.... then you'll see a hammer with no for stock... click
no... then once the submit form for letting a person know when it is in
stock comes up... click your browser's back button without filling out
any of the form... there is not even a button that I saw to click back...

then add some quantity in any of the items that are in stock... click
the buy list button and nothing will happen. nothing get put in your
cart... unless you do a refresh... so, the buy list button has a problem.
(end)

Revision  Changes    Path
2.4       +5 -4      interchange/dist/foundation/pages/results.html


rev 2.4, prev_rev 2.3
Index: results.html
===================================================================
RCS file: /var/cvs/interchange/dist/foundation/pages/results.html,v
retrieving revision 2.3
retrieving revision 2.4
diff -u -u -r2.3 -r2.4
--- results.html	1 Mar 2002 19:36:08 -0000	2.3
+++ results.html	26 Oct 2002 15:48:38 -0000	2.4
@@ -51,6 +51,7 @@
 [/if]
 [set did_order][/set]
 [search-region]
+[seti results_return_to][history-scan exclude=nothing count=0][/seti]
 [set munge_quantity]
 [calc]
 	$Scratch->{did_order} = 1;
@@ -85,7 +86,7 @@
 	$CGI->{mv_order_quantity} = "$q[$idx]";
 	return;
 [/calc]
-	[bounce href="[history-scan exclude=nothing]"]
+	[bounce href="[scratch results_return_to]"]
 [/set]
 
 <br>
@@ -129,12 +130,12 @@
 	my $q = q{[item-data inventory quantity]};
 	if($q > 0) {
 		return <<EOF;
-<font __FFACE__ size="1" color="#008000"><b>Y</b></font>
+<font __FFACE__ size="1" color="#008000"><b>Yes</b></font>
 EOF
 	}
 	else {
 		return <<EOF;
-<a href="[area stock-alert [item-code]]"><b>N</b></a>
+<a href="[area stock-alert [item-code]]"><b>No</b></a>
 EOF
 	}
 [/item-calc]
@@ -150,7 +151,7 @@
 		[/if]
 			</td>
 </tr>
-					
+
 [/search-list]
 
 </table>