Skip to content
This repository has been archived by the owner on Jan 15, 2020. It is now read-only.

Commit

Permalink
renamed a function in the js and added colorbox
Browse files Browse the repository at this point in the history
  • Loading branch information
aokolish committed May 3, 2011
1 parent 3bd0ab1 commit 6632d16
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions public/javascripts/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [],
Expand Down Expand Up @@ -153,7 +153,7 @@ var Custom = (function() {
price.hide();
}

addPrice();
calculateTotal();

});

Expand All @@ -167,6 +167,14 @@ var Custom = (function() {
//
var Gallery = (function() {

return {
init: function () {

$('.content-wrap > a').colorbox({ maxHeight : "80%" });

}
}

})()

//
Expand Down

0 comments on commit 6632d16

Please sign in to comment.