spree_backend 2.3.10 → 2.3.11
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 48840beb567eb3b8129ea8fb190949f5858d0e01
|
4
|
+
data.tar.gz: f7566310e5cae8320426442163716acd22a7fc98
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a1e52c95033a8a015f56ca112cf49f604dcb5cf096fbaca1b0e8d5832ce0f36bfe116b7d932913e460f072485d6a196f1587e078dac52bd0c17606517124ed12
|
7
|
+
data.tar.gz: a8c6e8eef72ff5de6dd77c8572e172d3e4ace6269abc62f68a6e8fd495b729803af820d0a7fbf85d95e0bb253d467d6047c390e19a922e09c99ffac337f3cab5
|
@@ -7,9 +7,9 @@ jQuery ($) ->
|
|
7
7
|
@json = $.getJSON @url.toString(), (data) =>
|
8
8
|
@data = data
|
9
9
|
|
10
|
-
|
10
|
+
if_editable: (callback) ->
|
11
11
|
@json.done (data) ->
|
12
|
-
callback() if data.state
|
12
|
+
callback() if data.state in ['checkout', 'pending']
|
13
13
|
|
14
14
|
update: (attributes, success) ->
|
15
15
|
jqXHR = $.ajax
|
@@ -142,8 +142,8 @@ jQuery ($) ->
|
|
142
142
|
separator = Spree.translations.currency_separator
|
143
143
|
amount.replace(///[^\d#{separator}]///g, '')
|
144
144
|
|
145
|
-
# Attach ShowPaymentView to each
|
145
|
+
# Attach ShowPaymentView to each editable payment in the table
|
146
146
|
$('.admin tr[data-hook=payments_row]').each ->
|
147
147
|
$el = $(@)
|
148
148
|
payment = new Payment($el.prop('id').match(/\d+$/))
|
149
|
-
payment.
|
149
|
+
payment.if_editable -> new ShowPaymentView($el, payment)
|
@@ -291,7 +291,8 @@ advanceOrder = function() {
|
|
291
291
|
$.ajax({
|
292
292
|
type: "PUT",
|
293
293
|
async: false,
|
294
|
-
url: Spree.url(Spree.routes.checkouts_api + "/" + order_number + "/advance")
|
294
|
+
url: Spree.url(Spree.routes.checkouts_api + "/" + order_number + "/advance"),
|
295
|
+
data: { token: Spree.api_key }
|
295
296
|
}).done(function() {
|
296
297
|
window.location.reload();
|
297
298
|
});
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spree_backend
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.
|
4
|
+
version: 2.3.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sean Schofield
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-07-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: spree_api
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 2.3.
|
19
|
+
version: 2.3.11
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 2.3.
|
26
|
+
version: 2.3.11
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: spree_core
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 2.3.
|
33
|
+
version: 2.3.11
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 2.3.
|
40
|
+
version: 2.3.11
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: jquery-rails
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|