プロジェクト

全般

プロフィール

Vote #80638

未完了

Javascript error caused by tooltip

Admin Redmine さんがほぼ2年前に追加. ほぼ2年前に更新.

ステータス:
Confirmed
優先度:
通常
担当者:
-
カテゴリ:
UI_10
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
10
version_id:
33
issue_org_id:
32899
author_id:
4
assigned_to_id:
0
comments:
4
status_id:
9
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Confirmed]

説明

Improved tooltip in Redmine 4.1.0 ( #31441) causes a Javascript error on some (self-made) plugin pages using the "title" attribute.
This is caused by the absence of the tooltip() function in the "title" attribute. By inserting a judgment statement as follows, errors will not occured.


--- a/public/javascripts/application.js
+++ b/public/javascripts/application.js
@@ -998,13 +998,15 @@
 
 $(function () {
-    $('[title]').tooltip({
-        show: {
-          delay: 400
-        },
-        position: {
-          my: "center bottom-5",
-          at: "center top"
-        }
-    });
+    if ($('[title]').tooltip !== undefined) {
+        $('[title]').tooltip({
+            show: {
+              delay: 400
+            },
+            position: {
+              my: "center bottom-5",
+              at: "center top"
+            }
+        });
+    }
 });
 

journals

Could you give some examples of plugins that cause the problem?
--------------------------------------------------------------------------------
Try this forked plugin.
https://github.com/n0nel/Redmine-Monitoring-Controlling
(default branch: redmine4.1)
After installing, click "Monitoring & Controlling" tab, then javascript error will occur.
--------------------------------------------------------------------------------
!{width: 518px; border: 1px solid grey;}.32899-js-error.png!
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

Admin Redmine さんがほぼ2年前に更新

  • カテゴリUI_10 にセット
  • 対象バージョンCandidate for next minor release_33 にセット

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

いいね!0
いいね!0