diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2020-09-21 18:11:47 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2020-09-21 18:11:47 +0200 |
| commit | d906f7303e70adaa75523d8bfc5b46523ccfffa0 (patch) | |
| tree | b0002839ba72a737870b34dddbcb560bb7652847 /StoneIsland/www/js/sdk/product.js | |
| parent | 3cf5e5a97afe8fc7877b528cf19130bef0d68bad (diff) | |
adding cordova-plugin-advanced-http for all XHR now
Diffstat (limited to 'StoneIsland/www/js/sdk/product.js')
| -rwxr-xr-x | StoneIsland/www/js/sdk/product.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/StoneIsland/www/js/sdk/product.js b/StoneIsland/www/js/sdk/product.js index 3619b0bd..07c0219a 100755 --- a/StoneIsland/www/js/sdk/product.js +++ b/StoneIsland/www/js/sdk/product.js @@ -5,7 +5,7 @@ sdk.product = (function(){ var default_department = "NkXStnsl" product.all = function(opt){ - return $.ajax({ + return sdk.ajax({ method: "GET", url: sdk.path("Search.API/1.3", "search.json", "US"), data: { format: "full", productsPerPage: 100 }, @@ -15,7 +15,7 @@ sdk.product = (function(){ } product.collection = function(opt){ - return $.ajax({ + return sdk.ajax({ method: "GET", url: sdk.path("Search.API/1.3", "search.json", "US"), data: { format: "full", department: opt.department_id || default_department, productsPerPage: 100 }, @@ -25,7 +25,7 @@ sdk.product = (function(){ } product.department_codes = function(opt){ - return $.ajax({ + return sdk.ajax({ method: "GET", url: sdk.path("Search.API/1.3", "search/results.json", "US"), data: { format: "full", department: opt.department_id || default_department, page: 1 }, @@ -35,7 +35,7 @@ sdk.product = (function(){ } product.collection_by_gallery = function(opt){ - return $.ajax({ + return sdk.ajax({ method: "GET", url: sdk.path("Search.API/1.2", "search.json", "US"), data: { format: "full", gallery: opt.gallery_id || default_gallery, productsPerPage: 100 }, @@ -46,7 +46,7 @@ sdk.product = (function(){ // https://gist.github.com/fanfare/2d25d1b36944188948ff product.item = function(opt){ - return $.ajax({ + return sdk.ajax({ method: "GET", url: sdk.path("Item.API/1.0", "item/" + opt.code + ".json"), success: opt.success, @@ -55,7 +55,7 @@ sdk.product = (function(){ } product.search = function(opt){ - return $.ajax({ + return sdk.ajax({ method: "GET", url: sdk.path("Search.API/1.2", "search.json"), data: { format: "full", gallery: opt.gallery_id || default_gallery, textSearch: opt.query, productsPerPage: 100 }, |
