Commit ae462c5e3d83eb92613ec145a3b5651b3597b2b8
1 parent
e035ee75
Exists in
master
and in
22 other branches
ActionItem85: fixing bug
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@766 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
2 changed files
with
3 additions
and
10 deletions
Show diff stats
app/controllers/application.rb
... | ... | @@ -12,7 +12,7 @@ class ApplicationController < ActionController::Base |
12 | 12 | extend PermissionCheck |
13 | 13 | init_gettext 'noosfero' |
14 | 14 | |
15 | - before_filter :detect_stuff_by_domain, :load_profile_from_params | |
15 | + before_filter :detect_stuff_by_domain | |
16 | 16 | attr_reader :environment |
17 | 17 | |
18 | 18 | protected |
... | ... | @@ -28,13 +28,6 @@ class ApplicationController < ActionController::Base |
28 | 28 | end |
29 | 29 | end |
30 | 30 | |
31 | -# before_filter :load_profile_from_params | |
32 | - def load_profile_from_params | |
33 | - if params[:profile] | |
34 | - @profile ||= Profile.find_by_identifier(params[:profile]) | |
35 | - end | |
36 | - end | |
37 | - | |
38 | 31 | def profile |
39 | 32 | @profile |
40 | 33 | end | ... | ... |
app/helpers/application_helper.rb
... | ... | @@ -256,11 +256,11 @@ module ApplicationHelper |
256 | 256 | end |
257 | 257 | |
258 | 258 | def search_box |
259 | - [form_tag( '/search'), | |
259 | + [form_tag( :controller => 'search', :action => 'index'), | |
260 | 260 | text_field_tag( 'query', _('Search'), :id => "input_search"), |
261 | 261 | submit_tag(_('Search'), :id => 'button_search'), |
262 | 262 | '</form>', |
263 | - observe_field('input_search', :function => '', :on => :click) | |
263 | + observe_field('input_search', :function => "", :on => :focus) | |
264 | 264 | ].join("\n") |
265 | 265 | end |
266 | 266 | ... | ... |