summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/sdk/product.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-10-20 16:11:07 -0400
committerJules Laplace <jules@okfoc.us>2015-10-20 16:11:07 -0400
commit5fc529464393b5bd078e6a3987e6198503a433ef (patch)
tree2719b16dc4165e70cb7a9292eef224c3f74202cf /StoneIsland/www/js/sdk/product.js
parent1928c62ffe255c3a2a89d31d7e8bf69035b1babb (diff)
test product apis
Diffstat (limited to 'StoneIsland/www/js/sdk/product.js')
-rw-r--r--StoneIsland/www/js/sdk/product.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/StoneIsland/www/js/sdk/product.js b/StoneIsland/www/js/sdk/product.js
index c904eb32..a2ba30a1 100644
--- a/StoneIsland/www/js/sdk/product.js
+++ b/StoneIsland/www/js/sdk/product.js
@@ -1,7 +1,7 @@
sdk.product = (function(){
var product = {}
- product.fetch_collection = function(opt){
+ product.collection = function(opt){
$.ajax({
method: "GET",
url: sdk.path("Search.API/1.2", "search.json"),
@@ -15,7 +15,7 @@ sdk.product = (function(){
product.item = function(opt){
$.ajax({
method: "GET",
- url: sdk.path("Item.API/1.0", "item/" + data.code + ".json"),
+ url: sdk.path("Item.API/1.0", "item/" + opt.code + ".json"),
success: opt.success,
error: opt.error,
})