Vote #75527
完了Link with hash does not work on Firefox
0%
説明
In opening this link in new web browser window,
browser goes to line 275.
source:trunk/public/help/zh-tw/wiki_syntax_detailed.html@13340#L275
IE and Chrome work fine, but Firefox 31.0 does not work.
Firefox stays on top of page.
On click in address bar, ff goes to line 275.
It seems jquery-1.8.3-ui-1.9.2-ujs-2.0.3.js problem.
Following modificaion works.
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -1295,7 +1295,8 @@ module ApplicationHelper
# Returns the javascript tags that are included in the html layout head
def javascript_heads
- tags = javascript_include_tag('jquery-1.8.3-ui-1.9.2-ujs-2.0.3', 'application')
+ # tags = javascript_include_tag('jquery-1.8.3-ui-1.9.2-ujs-2.0.3', 'application')
+ tags = ""
unless User.current.pref.warn_on_leaving_unsaved == '0'
tags << "\n".html_safe + javascript_tag("$(window).load(function(){ warnLeavingUnsaved('#{escape_javascript l(:text_warn_on_leaving_unsaved)}'); });")
end
journals
--------------------------------------------------------------------------------
#13134#note-8 says the reason.
--------------------------------------------------------------------------------
Fixed in r14396. Automatic focus is disabled when URL contains a hash.
--------------------------------------------------------------------------------
Thx for the fix :)
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
related_issues
relates,Closed,13134,Focus first text field automatically