From e6293757ee606303cd1526dc63fe54acf248b28f Mon Sep 17 00:00:00 2001 From: ChrFr Date: Wed, 23 Oct 2019 12:45:24 +0200 Subject: [PATCH] data entry - tooltip and scroll on activity/group list --- repair/js/views/data-entry/actors-flows.js | 3 +++ repair/templates/dataentry/actors-flows.html | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/repair/js/views/data-entry/actors-flows.js b/repair/js/views/data-entry/actors-flows.js index 75479a64a..176ad3eed 100644 --- a/repair/js/views/data-entry/actors-flows.js +++ b/repair/js/views/data-entry/actors-flows.js @@ -191,6 +191,9 @@ var FlowsEditView = BaseView.extend( plugins: ["wholerow", "ui", "types", "themes"] }); $(this.dataTree).on("select_node.jstree", this.nodeSelected); + $(this.dataTree).bind("hover_node.jstree", function (e, data) { + $("#" + data.node.id).prop('title', data.node.text); + }) this.filterSelect = this.el.querySelector('#included-filter-select'); this.actorsTable = $('#actors-table').DataTable(); $('#actors-table tbody').on('click', 'tr', function () { diff --git a/repair/templates/dataentry/actors-flows.html b/repair/templates/dataentry/actors-flows.html index f0fb082ba..b8f3d6988 100644 --- a/repair/templates/dataentry/actors-flows.html +++ b/repair/templates/dataentry/actors-flows.html @@ -18,7 +18,7 @@

<%= casestudy %> > <%= keyflow %> > {% trans "Flows" %}

{% trans "Activity Groups" %} / {% trans "Activities" %} -
+

{% trans "Select an activity by clicking its row to show the related actors." %}