Commit 137c150428b872792ced3d52b9a123f26bb2e3c9
1 parent
0b0c001c
Exists in
master
and in
29 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 | 98 | rescue Exception => exception |
99 | 99 | render :text => { |
100 | 100 | :ok => false, |
101 | - :message => _('Your request failed.'), | |
102 | 101 | :error => { |
103 | 102 | :code => 6, |
104 | - :message => exception | |
103 | + :message => exception.message | |
105 | 104 | } |
106 | 105 | }.to_json |
107 | 106 | end | ... | ... |
plugins/shopping_cart/lib/shopping_cart_plugin.rb
plugins/shopping_cart/public/cart.js
... | ... | @@ -264,7 +264,7 @@ function Cart(config) { |
264 | 264 | }, |
265 | 265 | cache: false, |
266 | 266 | error: function(ajax, status, errorThrown) { |
267 | - alert('Remove item - HTTP '+status+': '+errorThrown); | |
267 | + alert('Send request - HTTP '+status+': '+errorThrown); | |
268 | 268 | }, |
269 | 269 | complete: function() { |
270 | 270 | $.colorbox.close(); | ... | ... |