From 7d8949e975379e6ce3809ff8dc056cf304038dd9 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Wed, 19 Jun 2019 08:30:36 +0000 Subject: [PATCH] Show elements titles using jQuery UI tooltips (#31441). Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@18260 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- public/javascripts/application.js | 11 +++++++++++ public/stylesheets/application.css | 10 ++++++++++ 2 files changed, 21 insertions(+) diff --git a/public/javascripts/application.js b/public/javascripts/application.js index 25dc501ea..cf74818a7 100644 --- a/public/javascripts/application.js +++ b/public/javascripts/application.js @@ -934,6 +934,17 @@ function setupAttachmentDetail() { $(window).resize(setFilecontentContainerHeight); } +$(function () { + $('[title]').tooltip({ + show: { + delay: 400 + }, + position: { + my: "center bottom-5", + at: "center top" + } + }); +}); $(document).ready(setupAjaxIndicator); $(document).ready(hideOnLoad); $(document).ready(addFormObserversForDoubleSubmit); diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css index a4c77d118..f3b74f81a 100644 --- a/public/stylesheets/application.css +++ b/public/stylesheets/application.css @@ -1405,6 +1405,16 @@ td.gantt_selected_column .gantt_hdr,.gantt_selected_column_container { color: #1D781D; border: 1px solid #1D781D; } +/***** Tooltips *****/ +.ui-tooltip { + background: #000; + color: #fff; + font-size: 0.9em; + border-radius: 3px; + border: 0; + box-shadow: none +} + /***** Icons *****/ .icon { background-position: 0% 50%; -- 2.39.5