Commit 137c150428b872792ced3d52b9a123f26bb2e3c9

Authored by Rodrigo Souto
1 parent 0b0c001c

Little fixes

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
... ... @@ -23,7 +23,7 @@ class ShoppingCartPlugin < Noosfero::Plugin
23 23 alias :catalog_item_extras :add_to_cart_button
24 24 alias :asset_product_extras :add_to_cart_button
25 25  
26   - def stylesheets?
  26 + def stylesheet?
27 27 true
28 28 end
29 29  
... ...
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();
... ...