Vote #80638
未完了Javascript error caused by tooltip
0%
説明
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 さんが約1年前に更新
- カテゴリ を UI_10 にセット
- 対象バージョン を Candidate for next minor release_33 にセット