プロジェクト

全般

プロフィール

Vote #75527

完了

Link with hash does not work on Firefox

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
UI_10
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
10
version_id:
98
issue_org_id:
17757
author_id:
11192
assigned_to_id:
1
comments:
5
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
84
ステータス-->[Closed]

説明

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

Admin Redmine さんが3年以上前に更新

  • カテゴリUI_10 にセット
  • 対象バージョン2.6.6_98 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0