diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 2577a97..c2826d1 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -921,7 +921,6 @@ module ApplicationHelper
'lightbox',
'colorpicker',
pngfix_stylesheet_path,
- 'jquery.ui/sunny/jquery-ui-1.8.2.custom',
]
end
@@ -962,7 +961,7 @@ module ApplicationHelper
end
def ui_icon(icon_type)
- ""
+ ""
end
def ui_button(label, url, html_options = {})
@@ -973,4 +972,13 @@ module ApplicationHelper
link_to_remote(label, options, html_options.merge(:class => 'ui_button fg-button'))
end
+ def jquery_ui_theme_stylesheet_path
+ 'jquery.ui/sunny/jquery-ui-1.8.2.custom'
+ end
+
+ # transform all element with class ui_button in a jQuery UI button
+ def render_jquery_ui_buttons
+ javascript_tag('render_jquery_ui_buttons()')
+ end
+
end
diff --git a/app/helpers/manage_products_helper.rb b/app/helpers/manage_products_helper.rb
index 6ff212e..682a1f3 100644
--- a/app/helpers/manage_products_helper.rb
+++ b/app/helpers/manage_products_helper.rb
@@ -34,7 +34,7 @@ module ManageProductsHelper
count_chars += toplevel.name.length
end
ancestors.each do |category|
- if count_chars > 60
+ if count_chars > 55
hierarchy << hierarchy_category_item(category, options[:make_links], '( … )')
break
else
diff --git a/app/views/layouts/application-ng.rhtml b/app/views/layouts/application-ng.rhtml
index 85f3618..f5c346d 100644
--- a/app/views/layouts/application-ng.rhtml
+++ b/app/views/layouts/application-ng.rhtml
@@ -12,6 +12,7 @@
<%= stylesheet_link_tag template_stylesheet_path %>
<%= stylesheet_link_tag icon_theme_stylesheet_path %>
<%= stylesheet_link_tag theme_stylesheet_path %>
+ <%= stylesheet_link_tag jquery_ui_theme_stylesheet_path %>
<%# Add custom tags/styles/etc via content_for %>
<%= yield :head %>
@@ -91,5 +92,6 @@
<%= noosfero_layout_features %>
<%= theme_javascript_ng %>
+ <%= render_jquery_ui_buttons %>