diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-11-08 19:32:08 -0500 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-11-08 19:32:19 -0500 |
| commit | 069e15c10ed10b45673c2365f78fe8918753f19d (patch) | |
| tree | b6e64d1f31f8c4390415efe186116479ef657fb9 /StoneIsland/www/js/sdk/product.js | |
| parent | aa23fc23b5a8cf43d115bcf3953806e66dadf1c3 (diff) | |
use jqxhr style callbacks
Diffstat (limited to 'StoneIsland/www/js/sdk/product.js')
| -rw-r--r-- | StoneIsland/www/js/sdk/product.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/StoneIsland/www/js/sdk/product.js b/StoneIsland/www/js/sdk/product.js index a2ba30a1..2cf58452 100644 --- a/StoneIsland/www/js/sdk/product.js +++ b/StoneIsland/www/js/sdk/product.js @@ -2,7 +2,7 @@ sdk.product = (function(){ var product = {} product.collection = function(opt){ - $.ajax({ + return $.ajax({ method: "GET", url: sdk.path("Search.API/1.2", "search.json"), data: { format: "full", gallery: opt.gallery_id }, @@ -13,7 +13,7 @@ sdk.product = (function(){ // https://gist.github.com/fanfare/2d25d1b36944188948ff product.item = function(opt){ - $.ajax({ + return $.ajax({ method: "GET", url: sdk.path("Item.API/1.0", "item/" + opt.code + ".json"), success: opt.success, |
