From 05350ba37ce431bd180d5c6a119b700df45a037a Mon Sep 17 00:00:00 2001 From: Guillaume Andreu Sabater <guillaume.andreu.sabater@gmail.com> Date: Mon, 22 Sep 2014 14:00:33 +0200 Subject: [PATCH 1/3] fixed typo --- helpdesk/templates/helpdesk/ticket_desc_table.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpdesk/templates/helpdesk/ticket_desc_table.html b/helpdesk/templates/helpdesk/ticket_desc_table.html index 4fecceb5..0ee5b90a 100644 --- a/helpdesk/templates/helpdesk/ticket_desc_table.html +++ b/helpdesk/templates/helpdesk/ticket_desc_table.html @@ -62,7 +62,7 @@ {% empty %} <p>{% trans "This ticket has no dependencies." %}</p> {% endfor %} - <p><a data-toogle='tooltip' href='{% url 'helpdesk_ticket_dependency_add' ticket.id %}' title="{% trans "Click on 'Add Dependency', if you want to make this ticket dependent on another ticket. A ticket may not be closed until all tickets it depends on are closed." %}">{% trans "Add Dependency" %}</a></p> + <p><a data-toggle='tooltip' href='{% url 'helpdesk_ticket_dependency_add' ticket.id %}' title="{% trans "Click on 'Add Dependency', if you want to make this ticket dependent on another ticket. A ticket may not be closed until all tickets it depends on are closed." %}">{% trans "Add Dependency" %}</a></p> </td> </tr> From 45eda26e7cba1a1448dfc3c1aebc3f042e47d876 Mon Sep 17 00:00:00 2001 From: Guillaume Andreu Sabater <guillaume.andreu.sabater@gmail.com> Date: Mon, 22 Sep 2014 14:03:37 +0200 Subject: [PATCH 2/3] swapped <a> and <strong> tags --- helpdesk/templates/helpdesk/ticket_desc_table.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpdesk/templates/helpdesk/ticket_desc_table.html b/helpdesk/templates/helpdesk/ticket_desc_table.html index 0ee5b90a..d6016785 100644 --- a/helpdesk/templates/helpdesk/ticket_desc_table.html +++ b/helpdesk/templates/helpdesk/ticket_desc_table.html @@ -50,7 +50,7 @@ <tr> <th>{% trans "Copies To" %}</th> - <td>{{ ticketcc_string }} <strong><a data-toggle='tooltip' href='{% url 'helpdesk_ticket_cc' ticket.id %}' title='{% trans "Click here to add / remove people who should receive an e-mail whenever this ticket is updated." %}'>{% trans "Manage" %}</a></strong>{% if SHOW_SUBSCRIBE %}, <strong><a data-toggle='tooltip' href='?subscribe' title='{% trans "Click here to subscribe yourself to this ticket, if you want to receive an e-mail whenever this ticket is updated." %}'>{% trans "Subscribe" %}</a></strong>{% endif %}</td> + <td>{{ ticketcc_string }} <a data-toggle='tooltip' href='{% url 'helpdesk_ticket_cc' ticket.id %}' title='{% trans "Click here to add / remove people who should receive an e-mail whenever this ticket is updated." %}'><strong>{% trans "Manage" %}</strong></a>{% if SHOW_SUBSCRIBE %}, <strong><a data-toggle='tooltip' href='?subscribe' title='{% trans "Click here to subscribe yourself to this ticket, if you want to receive an e-mail whenever this ticket is updated." %}'>{% trans "Subscribe" %}</a></strong>{% endif %}</td> </tr> <tr> From d5dd2c3423de7afb391c53b5fc281206587cdc1b Mon Sep 17 00:00:00 2001 From: Guillaume Andreu Sabater <guillaume.andreu.sabater@gmail.com> Date: Mon, 22 Sep 2014 14:04:14 +0200 Subject: [PATCH 3/3] actually enable tooltip --- helpdesk/templates/helpdesk/followup_edit.html | 9 ++++++++- helpdesk/templates/helpdesk/ticket.html | 2 ++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/helpdesk/templates/helpdesk/followup_edit.html b/helpdesk/templates/helpdesk/followup_edit.html index 5ca542e9..9ef48ff9 100644 --- a/helpdesk/templates/helpdesk/followup_edit.html +++ b/helpdesk/templates/helpdesk/followup_edit.html @@ -1,6 +1,13 @@ {% extends "helpdesk/base.html" %}{% load i18n %} {% block helpdesk_title %}{% trans "Edit followup" %}{% endblock %} -{% block helpdesk_head %}{% endblock helpdesk_head %} + +{% block helpdesk_head %} +<script type="text/javascript"> + $(document).ready(function() { + $("[data-toggle=tooltip]").tooltip(); + }); +</script> +{% endblock helpdesk_head %} {% block helpdesk_body %} diff --git a/helpdesk/templates/helpdesk/ticket.html b/helpdesk/templates/helpdesk/ticket.html index 08fa3fc1..553c7885 100644 --- a/helpdesk/templates/helpdesk/ticket.html +++ b/helpdesk/templates/helpdesk/ticket.html @@ -24,6 +24,8 @@ }); } }); + + $("[data-toggle=tooltip]").tooltip(); }); function processAddFileClick() {