]> source.dussan.org Git - redmine.git/commitdiff
Show elements titles using jQuery UI tooltips (#31441).
authorGo MAEDA <maeda@farend.jp>
Wed, 19 Jun 2019 08:30:36 +0000 (08:30 +0000)
committerGo MAEDA <maeda@farend.jp>
Wed, 19 Jun 2019 08:30:36 +0000 (08:30 +0000)
Patch by Marius BALTEANU.

git-svn-id: http://svn.redmine.org/redmine/trunk@18260 e93f8b46-1217-0410-a6f0-8f06a7374b81

public/javascripts/application.js
public/stylesheets/application.css

index 25dc501eaf8b5ababed3cf1c88f1fabd5b942d9e..cf74818a76b95b72cda79f382cdc17f0d1a4ae80 100644 (file)
@@ -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);
index a4c77d1188a1bcbf3bb33722220749c88ae38731..f3b74f81a613c1d3a160598826eb411917b910c7 100644 (file)
@@ -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%;