disable_tooltip_in_workflow_status_transition.patch

Marius BALTEANU, 2020-12-12 13:22

Download (1.38 KB)

View differences:

app/views/workflows/_form.html.erb
40 40
    </td>
41 41
    <% for new_status in @statuses -%>
42 42
    <% checked = (old_status == new_status) || (transition_counts[[old_status, new_status]] > 0) %>
43
    <td class="<%= checked ? 'enabled' : '' %>" title="<%= old_status_name %> &#187; <%= new_status.name %>">
43
    <td class="no-tooltip <%= checked ? 'enabled' : '' %>" title="<%= old_status_name %> &#187; <%= new_status.name %>">
44 44
      <%= transition_tag transition_counts[[old_status, new_status]], old_status, new_status, name %>
45 45
    </td>
46 46
    <% end -%>
public/javascripts/application.js
1039 1039
}
1040 1040

  
1041 1041
$(function () {
1042
    $('[title]').tooltip({
1043
        show: {
1044
          delay: 400
1045
        },
1046
        position: {
1047
          my: "center bottom-5",
1048
          at: "center top"
1049
        }
1050
    });
1042
  $("[title]:not(.no-tooltip)").tooltip({
1043
    show: {
1044
      delay: 400
1045
    },
1046
    position: {
1047
      my: "center bottom-5",
1048
      at: "center top"
1049
    }
1050
  });
1051 1051
});
1052 1052

  
1053 1053
function inlineAutoComplete(element) {