solidus_core_devise_token_auth 2.8.0.alpha.10 → 2.8.0.alpha.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/spree.js.erb +11 -6
- data/lib/spree/core/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f41159262c1f05ae962dc29b1dacb9484ff1ea499362f7701608103ffde0920a
|
4
|
+
data.tar.gz: da26e11e23a627b9c33d1fb8b794509159a874c8a8278989fadd941a06b66ad1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 825d977756cf8b8f78031c15561c36d5014af2aae67f1f661e9f3e6007585dcf68a6f31a8194cf736581f5e5c5c0ba354e016e04ae9375da6f24a5c72a6b302d
|
7
|
+
data.tar.gz: fa9638cc1d68a162648c494c336a345bdad68ca2a7f7419d2f61fd82f076b961d26f9b55d02e77dde7f68df6bfaf92bf118a4c4da3a93bb8b5be3332794e4127
|
@@ -37,20 +37,25 @@ Spree.url = function(uri, query) {
|
|
37
37
|
return uri;
|
38
38
|
};
|
39
39
|
|
40
|
+
Spree.accessTokenHeaders = function() {
|
41
|
+
var authHeaders = {};
|
42
|
+
|
43
|
+
for (var key in Spree.accessTokenData) {
|
44
|
+
authHeaders[key] = Spree.accessTokenData[key];
|
45
|
+
}
|
46
|
+
|
47
|
+
return authHeaders;
|
48
|
+
};
|
49
|
+
|
40
50
|
Spree.ajax = function(url, options) {
|
41
51
|
if (typeof url === "object") {
|
42
52
|
options = url;
|
43
53
|
url = undefined;
|
44
54
|
}
|
45
55
|
|
46
|
-
var authHeaders = {};
|
47
|
-
for (var key in Spree.accessTokenData) {
|
48
|
-
authHeaders[key] = Spree.accessTokenData[key];
|
49
|
-
}
|
50
|
-
|
51
56
|
options = options || {};
|
52
57
|
options = $.extend(options, {
|
53
|
-
headers:
|
58
|
+
headers: Spree.accessTokenHeaders(),
|
54
59
|
});
|
55
60
|
return $.ajax(url, options);
|
56
61
|
};
|
data/lib/spree/core/version.rb
CHANGED