summaryrefslogtreecommitdiff
path: root/StoneIsland/platforms/ios/www/js/sdk/product.js
diff options
context:
space:
mode:
authorRene Ae <aehtyb@gmail.com>2015-12-11 03:05:10 -0600
committerRene Ae <aehtyb@gmail.com>2015-12-11 03:05:10 -0600
commitb1775dd32d1e0113eba81cfdb9a5626295eebc4e (patch)
tree19a2f4ea004d11037e494e863a39ac834d364429 /StoneIsland/platforms/ios/www/js/sdk/product.js
parent3442b2821d30dd1ca6c6db1ba089ae3f5c95a758 (diff)
parent053473394e6e0990c68a924adbb7c7d75f35973d (diff)
Merge branch 'android' of https://github.com/okfocus/stone-island into android
Diffstat (limited to 'StoneIsland/platforms/ios/www/js/sdk/product.js')
-rwxr-xr-xStoneIsland/platforms/ios/www/js/sdk/product.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/StoneIsland/platforms/ios/www/js/sdk/product.js b/StoneIsland/platforms/ios/www/js/sdk/product.js
index 55f1940a..7c12e7d7 100755
--- a/StoneIsland/platforms/ios/www/js/sdk/product.js
+++ b/StoneIsland/platforms/ios/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",