Actions
Defect #32899
openJavascript error caused by tooltip
Start date:
Due date:
% Done:
0%
Estimated time:
Resolution:
Affected version:
Description
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"
+ }
+ });
+ }
});
Files
Updated by Go MAEDA over 4 years ago
Could you give some examples of plugins that cause the problem?
Updated by Anonymous over 4 years ago
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.
Updated by Go MAEDA over 4 years ago
- File 32899-js-error.png 32899-js-error.png added
- Tracker changed from Patch to Defect
- Status changed from New to Confirmed
Updated by Go MAEDA over 4 years ago
- Target version set to Candidate for next minor release
Actions