summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/sdk/product.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-12-10 22:10:24 -0600
committerJules Laplace <jules@okfoc.us>2015-12-10 22:10:24 -0600
commit2fd41f4e25e27646bbebae29656a98817f1afc31 (patch)
tree2c56a8c34069d515d0b16a8fb050b9e4dfeeeb30 /StoneIsland/www/js/sdk/product.js
parent015b58ff6845b5cb79b13fec109a37b4c10c7813 (diff)
mode 755HEADmaster
Diffstat (limited to 'StoneIsland/www/js/sdk/product.js')
-rwxr-xr-x[-rw-r--r--]StoneIsland/www/js/sdk/product.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/StoneIsland/www/js/sdk/product.js b/StoneIsland/www/js/sdk/product.js
index 55f1940a..7c12e7d7 100644..100755
--- 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",