-
-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from dangerdogz/development
Fix failing tests (most of them), get basic features working with Solidus
- Loading branch information
Showing
11 changed files
with
25 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
_.extend Spree.translations, | ||
please_choose_language: "<%= Spree.t(:'i18n.choose_language') %>" | ||
|
||
$ -> | ||
_.extend (Spree.translations), | ||
please_choose_language: "<%= Spree.t(:'i18n.choose_language') %>" | ||
|
||
$('#available_locales_').select2({placeholder: Spree.translations['please_choose_language']}) |
9 changes: 4 additions & 5 deletions
9
app/assets/javascripts/spree/frontend/cart_decorator.js.coffee
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
Spree.fetch_cart = -> | ||
$.ajax | ||
url: Spree.pathFor("/cart_link"), | ||
cache: false, | ||
Spree.fetch_cart = (cartLinkUrl) -> | ||
Spree.ajax | ||
url: cartLinkUrl || Spree.pathFor("cart_link"), | ||
success: (data) -> | ||
$('#link-to-cart').html data | ||
$('#link-to-cart').html data |
5 changes: 2 additions & 3 deletions
5
app/controllers/spree/locale_controller.rb → ...lers/spree/locale_controller_decorator.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
module Spree | ||
class LocaleController < Spree::StoreController | ||
Spree::LocaleController.class_eval do | ||
def set | ||
redirect_to root_path(locale: params[:switch_to_locale]) | ||
end | ||
end | ||
end | ||
|
2 changes: 1 addition & 1 deletion
2
app/overrides/spree/admin/general_settings/edit/localization_settings.html.erb.deface
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 0 additions & 4 deletions
4
app/overrides/spree/layouts/spree_application/add_js_params.html.erb.deface
This file was deleted.
Oops, something went wrong.
9 changes: 9 additions & 0 deletions
9
app/overrides/spree/shared/_main_nav_bar/cart_link.html.erb.deface
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<!-- replace_contents '#main-nav-bar' --> | ||
<li id="home-link" data-hook><%= link_to Spree.t(:home), spree.root_path %></li> | ||
<li id="link-to-cart" data-hook> | ||
<noscript> | ||
<%= link_to Spree.t(:cart), '/cart' %> | ||
</noscript> | ||
| ||
</li> | ||
<script>Spree.fetch_cart('<%= j cart_link_url %>')</script> |
2 changes: 1 addition & 1 deletion
2
app/overrides/spree/shared/_main_nav_bar/locale_selector.html.erb.deface
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ | |
require 'solidus_i18n/version' | ||
require 'solidus_i18n/utils' | ||
require 'coffee_script' | ||
require 'deface' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters