projects
/
depot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Finished iteration D.3 in chapter 9
[depot.git]
/
app
/
views
/
store
/
add_to_cart.js.rjs
diff --git a/app/views/store/add_to_cart.js.rjs
b/app/views/store/add_to_cart.js.rjs
new file mode 100644
(file)
index 0000000..
1b6ec4c
--- /dev/null
+++ b/
app/views/store/add_to_cart.js.rjs
@@ -0,0
+1,5
@@
+page.replace_html("cart", :partial => 'cart', :object => @cart)
+
+page[:current_item].visual_effect :highlight,
+ :startcolor => "#88ff88" ,
+ :endcolor => "#114411"