spree_backend 2.1.5 → 2.1.6

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: a67893cb1246afcc0b5633e064a985fc5bef80a9
4
- data.tar.gz: 461eab8dabfc977a06b14203561983a768120bb7
3
+ metadata.gz: d66b5d26cfa4ae38fe8681bea1a28383fc734681
4
+ data.tar.gz: 08484ecf9094fd841dfb2ab5f3d831f473c533bd
5
5
  SHA512:
6
- metadata.gz: 650dcdb0372b5c022d2fdb616572b8da81809c44e1bd586d1ba35c3c5ff293f6aa618802b9e751c8e92e6a0323000d81389cedffe4b1f9dda9fe5fea9363ca28
7
- data.tar.gz: 8045ce114eeb4db7729a73994d6a108377b55aa4398750faa7746145add558df4a86a870fdf1f1448997ad7aeb8fad198a6d23c9b1f28e4486790c65842934c7
6
+ metadata.gz: 7018f4e61a2db7c7b3d5283526610ef38ebc7803f5fd5e94b515311a713bea750510e49d238910c4efab63d99f2694b85f11624d6e03204bc03be636afe3f8a2
7
+ data.tar.gz: 222bd1b2aaf5844266ae88910c24d24b6939e945a445a004c518e9660b05e45e9c43d59addf5124c1d7232a82be5e7008bb6afdb0994c30690c4e4ccb053002f
@@ -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
- return $.getJSON(Spree.routes.option_type_search + '?ids=' + (element.val()), null, function (data) {
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
  },
@@ -74,7 +74,7 @@ root.setup_taxonomy_tree = (taxonomy_id) ->
74
74
  root.base_url = Spree.url(Spree.routes.taxonomy_taxons_path)
75
75
 
76
76
  $.ajax
77
- url: base_url.path().replace("/taxons", "/jstree"),
77
+ url: Spree.url(base_url.path().replace("/taxons", "/jstree")).toString(),
78
78
  success: (taxonomy) ->
79
79
  last_rollback = null
80
80
 
@@ -83,7 +83,7 @@ root.setup_taxonomy_tree = (taxonomy_id) ->
83
83
  data: taxonomy,
84
84
  ajax:
85
85
  url: (e) ->
86
- base_url.path() + '/' + e.attr('id') + '/jstree'
86
+ Spree.url(base_url.path() + '/' + e.prop('id') + '/jstree').toString()
87
87
  themes:
88
88
  theme: "apple",
89
89
  url: Spree.url(Spree.routes.jstree_theme_path)
@@ -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')
@@ -6,7 +6,7 @@ module Spree
6
6
  before_filter :set_zones, :only => [:create, :update]
7
7
 
8
8
  def destroy
9
- @object.touch :deleted_at
9
+ @object.destroy
10
10
 
11
11
  flash[:success] = flash_message_for(@object, :successfully_removed)
12
12
 
@@ -56,11 +56,15 @@
56
56
  </div>
57
57
  <div class="field">
58
58
  <%= label_tag :secure_connection_type, Spree.t(:secure_connection_type) %><br />
59
- <%= select_tag(:secure_connection_type, options_from_collection_for_select(Spree::Core::MailSettings::SECURE_CONNECTION_TYPES.map{|w| Spree.t(w.downcase.to_sym, :default => w, :scope => 'mail_settings.security')}, :to_s, :to_s, Spree::Config[:secure_connection_type]), :class => 'select2 fullwidth') %>
59
+ <%= select_tag(:secure_connection_type,
60
+ options_from_collection_for_select(Spree::Core::MailSettings::SECURE_CONNECTION_TYPES, :to_s, :to_s, Spree::Config[:secure_connection_type]),
61
+ :class => 'select2 fullwidth') %>
60
62
  </div>
61
63
  <div class="field">
62
64
  <%= label_tag :mail_auth_type, Spree.t(:smtp_authentication_type) %><br />
63
- <%= select_tag(:mail_auth_type, options_from_collection_for_select(Spree::Core::MailSettings::MAIL_AUTH.map{|w| Spree.t(w.downcase.to_sym, :default => w, :scope => 'mail_settings.auth')}, :to_s, :to_s, Spree::Config[:mail_auth_type]), :class => 'select2 fullwidth') %>
65
+ <%= select_tag(:mail_auth_type,
66
+ options_from_collection_for_select(Spree::Core::MailSettings::MAIL_AUTH, :to_s, :to_s, Spree::Config[:mail_auth_type]),
67
+ :class => 'select2 fullwidth') %>
64
68
  </div>
65
69
  <div class="field">
66
70
  <%= label_tag :smtp_username, Spree.t(:smtp_username) %><br />
@@ -41,7 +41,7 @@
41
41
  <div class="field alpha five columns">
42
42
  <%= label_tag 'selected_shipping_rate_id', Spree.t(:shipping_method) %>
43
43
  <%= select_tag :selected_shipping_rate_id,
44
- options_for_select(shipment.shipping_rates.with_shipping_method.map {|sr| ["#{sr.name} #{sr.display_price}", sr.id] }, shipment.selected_shipping_rate_id),
44
+ options_for_select(shipment.shipping_rates.map {|sr| ["#{sr.name} #{sr.display_price}", sr.id] }, shipment.selected_shipping_rate_id),
45
45
  {:class => 'select2 fullwidth', :data => {'shipment-number' => shipment.number } } %>
46
46
  </div>
47
47
 
@@ -14,22 +14,16 @@
14
14
  <div class="field">
15
15
  <%= label_tag nil, Spree.t(:guest_checkout) %>
16
16
  <ul>
17
- <% if @order.completed? %>
18
- <li>
19
- <%= @order.user.nil? ? Spree.t(:say_yes) : Spree.t(:say_no) %>
20
- </li>
21
- <% else %>
22
- <% guest = @order.user.nil? %>
23
- <li>
24
- <%= radio_button_tag :guest_checkout, true, guest %>
25
- <%= label_tag :guest_checkout_true, Spree.t(:say_yes) %>
26
- </li>
27
- <li>
28
- <%= radio_button_tag :guest_checkout, false, !guest, :disabled => @order.cart? %>
29
- <%= label_tag :guest_checkout_false, Spree.t(:say_no) %>
30
- </li>
31
- <%= hidden_field_tag :user_id, @order.user_id %>
32
- <% end %>
17
+ <% guest = @order.user.nil? %>
18
+ <li>
19
+ <%= radio_button_tag :guest_checkout, true, guest %>
20
+ <%= label_tag :guest_checkout_true, Spree.t(:say_yes) %>
21
+ </li>
22
+ <li>
23
+ <%= radio_button_tag :guest_checkout, false, !guest, :disabled => @order.cart? %>
24
+ <%= label_tag :guest_checkout_false, Spree.t(:say_no) %>
25
+ </li>
26
+ <%= hidden_field_tag :user_id, @order.user_id %>
33
27
  </ul>
34
28
  </div>
35
29
  </div>
@@ -10,7 +10,7 @@
10
10
  <label><%= Spree.t(:payment_method) %></label>
11
11
  <ul>
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) %>
@@ -23,6 +23,7 @@ module Spree
23
23
  jqPlot/excanvas.min.js
24
24
  admin/images/new.js
25
25
  jquery.jstree/themes/apple/*
26
+ fontawesome-webfont*
26
27
  ]
27
28
  end
28
29
 
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.1.5
4
+ version: 2.1.6
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-02-18 00:00:00.000000000 Z
11
+ date: 2014-03-25 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.1.5
19
+ version: 2.1.6
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.1.5
26
+ version: 2.1.6
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.1.5
33
+ version: 2.1.6
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.1.5
40
+ version: 2.1.6
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
@@ -509,7 +510,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
509
510
  requirements:
510
511
  - none
511
512
  rubyforge_project: spree_backend
512
- rubygems_version: 2.2.0
513
+ rubygems_version: 2.2.2
513
514
  signing_key:
514
515
  specification_version: 4
515
516
  summary: backend e-commerce functionality for the Spree project.