Project

General

Profile

Feature #32029 » jquery-tooltips-gantt+calendar.patch

Anonymous, 2019-09-26 14:39

View differences:

app/views/common/_calendar.html.erb (working copy)
13 13
<p class="day-num"><%= day.day %></p>
14 14
<% calendar.events_on(day).each do |i| %>
15 15
  <% if i.is_a? Issue %>
16
  <div class="<%= i.css_classes %> <%= 'starting' if day == i.start_date %> <%= 'ending' if day == i.due_date %> tooltip hascontextmenu">
16
  <div title="" class="<%= i.css_classes %> <%= 'starting' if day == i.start_date %> <%= 'ending' if day == i.due_date %> tooltip hascontextmenu">
17 17
  <%= "#{i.project} -" unless @project && @project == i.project %>
18 18
  <%= link_to_issue i, :truncate => 30 %>
19 19
  <span class="tip"><%= render_issue_tooltip i %></span>
lib/redmine/helpers/gantt.rb (working copy)
926 926
          style << "width:#{coords[:bar_end] - coords[:bar_start]}px;"
927 927
          style << "height:12px;"
928 928
          output << view.content_tag(:div, s.html_safe,
929
                                     :title => "",
929 930
                                     :style => style,
930 931
                                     :class => "tooltip hascontextmenu",
931 932
                                     :data => data_options)
public/javascripts/application.js (working copy)
1008 1008
    });
1009 1009
});
1010 1010

  
1011
$(function () {
1012
  $('.tooltip').tooltip({
1013
    position: { my: "left top", at: "left bottom" },
1014
    open: function (event, ui) {
1015
      ui.tooltip.mouseover(function(){ui.tooltip.stop().animate({opacity:'100'})})
1016
      ui.tooltip.mouseout(function(){ui.tooltip.stop().hide("fade")})
1017
    },
1018
    content: function() {
1019
      return $(this).children(".tip").html();
1020
    }
1021
  });
1022
});
1023

  
1011 1024
function inlineAutoComplete(element) {
1012 1025
    'use strict';
1013 1026
    // do not attach if Tribute is already initialized
public/stylesheets/application.css (working copy)
1040 1040
p.cal.legend span {display:block;}
1041 1041

  
1042 1042
/***** Tooltips ******/
1043
.tooltip{position:relative;z-index:24;}
1044
.tooltip:hover{z-index:25;color:#000;}
1045
.tooltip span.tip{display: none; text-align:left;}
1046
.tooltip span.tip a { color: #169 !important; }
1043
.tooltip{z-index:24;}
1044
.tooltip span.tip{display: none;}
1047 1045

  
1048
.tooltip span.tip img.gravatar {
1049
  float: none;
1050
  margin: 0;
1051
}
1052

  
1053
div.tooltip:hover span.tip{
1054
display:block;
1055
position:absolute;
1056
top:12px; width:270px;
1057
border:1px solid #555;
1058
background-color:#fff;
1059
padding: 4px;
1060
font-size: 0.8em;
1061
color:#505050;
1062
}
1063

  
1064 1046
table.cal div.tooltip:hover span.tip {
1065 1047
  top: 25px;
1066 1048
}
......
1567 1549
  border-radius: 20%;
1568 1550
}
1569 1551

  
1570
div.issue img.gravatar {
1571
  float: left;
1572
  margin: 0 12px 6px 0;
1573
}
1574

  
1575 1552
div.gravatar-with-child {
1576 1553
  position: relative;
1577 1554
}
(1-1/3)