Skip to content

Commit

Permalink
load layout later
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdiana committed Nov 6, 2015
1 parent 66315af commit fd96f0f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion css/simpleStore.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 6 additions & 3 deletions js/simpleStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ var simpleStore = {
mode: "JSON",
JSONFile: "products.json",
fadeSpeed: 200,
buttonColor: null,
backgroundColor: null,
textColor: null,
container: $('.simpleStore_container'),
cartContainer: $('.simpleStore_cart_container'),
rowClass: 'simpleStore_row_',
Expand Down Expand Up @@ -337,9 +340,6 @@ var simpleStore = {

var s = this.settings;

// Setup layout
this.setLayout(s);

// Set mode
this.checkMode(s);

Expand Down Expand Up @@ -370,6 +370,9 @@ var simpleStore = {
// Because simpleCart items appends to cart, set up only once
this.generateCart(s);

// Setup layout
this.setLayout(s);

// Handle Checkout
$('.simpleStore_checkout').on('click', function (e) {
e.preventDefault();
Expand Down
4 changes: 2 additions & 2 deletions js/simpleStore.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "simplestore",
"version": "1.3",
"version": "1.4",
"description": "A clean, responsive storefront boilerplate with no database or backend.",
"main": "index.html",
"scripts": {
Expand Down

0 comments on commit fd96f0f

Please sign in to comment.