Created
February 4, 2010 20:34
-
-
Save glebd/295073 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 07f992c3a001a924ed62020b2b84d29d4dc5bbdd Mon Sep 17 00:00:00 2001 | |
From: Gleb Dolgich <gleb@proggle.com> | |
Date: Sat, 7 Nov 2009 04:17:46 +0000 | |
Subject: [PATCH] enabled coupon prefilling via search string | |
--- | |
app/views/store/order/new.rhtml | 2 +- | |
1 files changed, 1 insertions(+), 1 deletions(-) | |
diff --git a/app/views/store/order/new.rhtml b/app/views/store/order/new.rhtml | |
index 9e4e8ef..5b5ce13 100755 | |
--- a/app/views/store/order/new.rhtml | |
+++ b/app/views/store/order/new.rhtml | |
@@ -45,7 +45,7 @@ $(document).ready(function(){ | |
<tr><td colspan="2"><div class="d"></div></td></tr> | |
<tr id="coupon_row"> | |
<td>Coupon Code:</td> | |
- <td colspan="2"><%= text_field_tag 'coupon', session[:coupon_text], :autocomplete => 'off' %></td> | |
+ <td colspan="2"><%= text_field_tag 'coupon', session[:coupon_text] ||= params[:coupon], :autocomplete => 'off' %></td> | |
</tr> | |
<tr><td colspan="2"><div class="d" style="margin-top:15px"></div></td></tr> | |
<tr id="payment_method"> | |
-- | |
1.6.5.7.g9ecb2+GitX |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment