spree_backend 2.0.9 → 2.0.10
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/admin/admin.js.erb +3 -1
- data/app/assets/javascripts/admin/option_type_autocomplete.js.erb +4 -1
- data/app/assets/javascripts/spree/backend/select_payments.js.coffee +7 -0
- data/app/views/spree/admin/payments/_form.html.erb +1 -1
- data/lib/spree/backend/engine.rb +1 -0
- metadata +8 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ce03c4d42683c7d58447f8a7c84a49e4bebc30d8
|
4
|
+
data.tar.gz: 949afcf9ba387119aaa88311a3ca889bec37ee5f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 814cac3783d97f52e06c8aa19d8c97e7a676275414ff8211ea6915337ddfd631ffe263bc0e0b061b3b36242419941634a1141b65c0578cbf48686247f140e87d
|
7
|
+
data.tar.gz: c0c1ba7b357ed69a6071d005cb71a8dbd390fa3b611251e716b1538c13a4762ac5913af22b9c7b57f372ca7a4140163893bdbd0794c7e371f7b94290fa2231b9
|
@@ -172,7 +172,9 @@ $(document).ready(function(){
|
|
172
172
|
},
|
173
173
|
dataType: 'script',
|
174
174
|
success: function(response) {
|
175
|
-
el.parents("tr").fadeOut('hide')
|
175
|
+
el.parents("tr").fadeOut('hide', function() {
|
176
|
+
$(this).remove();
|
177
|
+
});
|
176
178
|
},
|
177
179
|
error: function(response, textStatus, errorThrown) {
|
178
180
|
show_flash('error', response.responseText);
|
@@ -6,7 +6,10 @@ $(document).ready(function () {
|
|
6
6
|
placeholder: Spree.translations.option_type_placeholder,
|
7
7
|
multiple: true,
|
8
8
|
initSelection: function (element, callback) {
|
9
|
-
|
9
|
+
var url = Spree.url(Spree.routes.option_type_search, {
|
10
|
+
ids: element.val()
|
11
|
+
});
|
12
|
+
return $.getJSON(url, null, function (data) {
|
10
13
|
return callback(data);
|
11
14
|
});
|
12
15
|
},
|
@@ -0,0 +1,7 @@
|
|
1
|
+
$ ->
|
2
|
+
if $('.new_payment').is('*')
|
3
|
+
$('.payment-method-settings fieldset').addClass('hidden').first().removeClass('hidden')
|
4
|
+
$('input[name="payment[payment_method_id]"]').click ()->
|
5
|
+
$('.payment-method-settings fieldset').addClass('hidden')
|
6
|
+
id = $(this).parents('li').data('id')
|
7
|
+
$("fieldset##{id}").removeClass('hidden')
|
@@ -10,7 +10,7 @@
|
|
10
10
|
<label><%= Spree.t(:payment_method) %></label>
|
11
11
|
<ul id='payment-methods'>
|
12
12
|
<% @payment_methods.each do |method| %>
|
13
|
-
<li>
|
13
|
+
<li data-id="<%= Spree.t(method.name, :scope => :payment_methods, :default => method.name).parameterize %>">
|
14
14
|
<label data-hook="payment_method_field">
|
15
15
|
<%= radio_button_tag 'payment[payment_method_id]', method.id, method == @payment_method %>
|
16
16
|
<%= Spree.t(method.name, :scope => :payment_methods, :default => method.name) %>
|
data/lib/spree/backend/engine.rb
CHANGED
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.0.
|
4
|
+
version: 2.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sean Schofield
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-03-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: spree_core
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 2.0.
|
19
|
+
version: 2.0.10
|
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.0.
|
26
|
+
version: 2.0.10
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: spree_api
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 2.0.
|
33
|
+
version: 2.0.10
|
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.0.
|
40
|
+
version: 2.0.10
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: jquery-rails
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -141,6 +141,7 @@ files:
|
|
141
141
|
- app/assets/javascripts/admin/variant_autocomplete.js.erb
|
142
142
|
- app/assets/javascripts/admin/variant_management.js.coffee
|
143
143
|
- app/assets/javascripts/admin/zone.js.coffee
|
144
|
+
- app/assets/javascripts/spree/backend/select_payments.js.coffee
|
144
145
|
- app/assets/javascripts/store/backend.js
|
145
146
|
- app/assets/stylesheets/admin/components/_actions.scss
|
146
147
|
- app/assets/stylesheets/admin/components/_date-picker.scss
|
@@ -497,7 +498,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
497
498
|
requirements:
|
498
499
|
- none
|
499
500
|
rubyforge_project: spree_backend
|
500
|
-
rubygems_version: 2.2.
|
501
|
+
rubygems_version: 2.2.2
|
501
502
|
signing_key:
|
502
503
|
specification_version: 4
|
503
504
|
summary: backend e-commerce functionality for the Spree project.
|