From 6632d16ee0648ea99adad6fefa798100ab22f9e4 Mon Sep 17 00:00:00 2001 From: Alex Okolish Date: Mon, 2 May 2011 22:59:26 -0400 Subject: [PATCH] renamed a function in the js and added colorbox --- public/javascripts/application.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/public/javascripts/application.js b/public/javascripts/application.js index 975ba06..5401834 100644 --- a/public/javascripts/application.js +++ b/public/javascripts/application.js @@ -98,7 +98,7 @@ var Distributors = (function() { // var Custom = (function() { - function addPrice() { + function calculateTotal() { // add up the price of the bag based on the options selected var checkedInputs = $('div.prices input:checked'), prices = [], @@ -153,7 +153,7 @@ var Custom = (function() { price.hide(); } - addPrice(); + calculateTotal(); }); @@ -167,6 +167,14 @@ var Custom = (function() { // var Gallery = (function() { + return { + init: function () { + + $('.content-wrap > a').colorbox({ maxHeight : "80%" }); + + } + } + })() //