mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-31 20:19:05 +08:00
Merge pull request #620 from okriuchykhin/ok_SCI_452
Disable turbolinks on search links to fix JS errors [SCI-452]
This commit is contained in:
commit
9f9691de59
1 changed files with 3 additions and 2 deletions
|
@ -11,10 +11,11 @@ module SearchHelper
|
||||||
if search_team != current_team
|
if search_team != current_team
|
||||||
link_to text,
|
link_to text,
|
||||||
path,
|
path,
|
||||||
data: { confirm: t('users.settings.changed_team_in_search',
|
data: { no_turbolink: true,
|
||||||
|
confirm: t('users.settings.changed_team_in_search',
|
||||||
team: search_team.name) }
|
team: search_team.name) }
|
||||||
else
|
else
|
||||||
link_to text, path
|
link_to text, path, data: { no_turbolink: true }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue