Commit 137c150428b872792ced3d52b9a123f26bb2e3c9
1 parent
0b0c001c
Exists in
master
and in
23 other branches
Little fixes
Showing
3 changed files
with
3 additions
and
4 deletions
Show diff stats
plugins/shopping_cart/controllers/shopping_cart_plugin_profile_controller.rb
| @@ -98,10 +98,9 @@ class ShoppingCartPluginProfileController < ProfileController | @@ -98,10 +98,9 @@ class ShoppingCartPluginProfileController < ProfileController | ||
| 98 | rescue Exception => exception | 98 | rescue Exception => exception |
| 99 | render :text => { | 99 | render :text => { |
| 100 | :ok => false, | 100 | :ok => false, |
| 101 | - :message => _('Your request failed.'), | ||
| 102 | :error => { | 101 | :error => { |
| 103 | :code => 6, | 102 | :code => 6, |
| 104 | - :message => exception | 103 | + :message => exception.message |
| 105 | } | 104 | } |
| 106 | }.to_json | 105 | }.to_json |
| 107 | end | 106 | end |
plugins/shopping_cart/lib/shopping_cart_plugin.rb
| @@ -23,7 +23,7 @@ class ShoppingCartPlugin < Noosfero::Plugin | @@ -23,7 +23,7 @@ class ShoppingCartPlugin < Noosfero::Plugin | ||
| 23 | alias :catalog_item_extras :add_to_cart_button | 23 | alias :catalog_item_extras :add_to_cart_button |
| 24 | alias :asset_product_extras :add_to_cart_button | 24 | alias :asset_product_extras :add_to_cart_button |
| 25 | 25 | ||
| 26 | - def stylesheets? | 26 | + def stylesheet? |
| 27 | true | 27 | true |
| 28 | end | 28 | end |
| 29 | 29 |
plugins/shopping_cart/public/cart.js
| @@ -264,7 +264,7 @@ function Cart(config) { | @@ -264,7 +264,7 @@ function Cart(config) { | ||
| 264 | }, | 264 | }, |
| 265 | cache: false, | 265 | cache: false, |
| 266 | error: function(ajax, status, errorThrown) { | 266 | error: function(ajax, status, errorThrown) { |
| 267 | - alert('Remove item - HTTP '+status+': '+errorThrown); | 267 | + alert('Send request - HTTP '+status+': '+errorThrown); |
| 268 | }, | 268 | }, |
| 269 | complete: function() { | 269 | complete: function() { |
| 270 | $.colorbox.close(); | 270 | $.colorbox.close(); |