From 2fd41f4e25e27646bbebae29656a98817f1afc31 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Thu, 10 Dec 2015 22:10:24 -0600 Subject: mode 755 --- StoneIsland/www/js/sdk/product.js | 10 ++++++++++ 1 file changed, 10 insertions(+) mode change 100644 => 100755 StoneIsland/www/js/sdk/product.js (limited to 'StoneIsland/www/js/sdk/product.js') diff --git a/StoneIsland/www/js/sdk/product.js b/StoneIsland/www/js/sdk/product.js old mode 100644 new mode 100755 index 55f1940a..7c12e7d7 --- a/StoneIsland/www/js/sdk/product.js +++ b/StoneIsland/www/js/sdk/product.js @@ -3,6 +3,16 @@ sdk.product = (function(){ var default_gallery = 31617 + product.all = function(opt){ + return $.ajax({ + method: "GET", + url: sdk.path("Search.API/1.2", "search.json"), + data: { format: "full", productsPerPage: 100 }, + success: opt.success, + error: opt.error, + }) + } + product.collection = function(opt){ return $.ajax({ method: "GET", -- cgit v1.2.3-70-g09d2