more button works according to categories
This commit is contained in:
1 parent
a38cf6304e
commit
3fad5445da
6 files changed
+72
-45
No files matched your search
@@ -12,10 +12,11 @@ module DefaultWidgetTagHelper
|
||||
if param.is_a?(Array) and !param.blank?
|
||||
params_str << param.collect{|t| "#{index}[]=#{t}"}.join("&")
|
||||
params.delete index
|
||||
params_str = params_str + "&"
|
||||
end
|
||||
end
|
||||
|
||||
params_str = params_str + (params_str.eql?("?") ? params.to_param : "&#{params.to_param}" )
|
||||
params_str = params_str + "&click=more_btn&page_part_id=#{@params[:part_id]}"
|
||||
content_tag :div,:class=> 'more' do
|
||||
link_to I18n.t(@more_link[:label_i18n]),[eval("#{@more_link[:path_method]}"),params_str].join()
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user