Skip to content

Commit

Permalink
data entry - tooltip and scroll on activity/group list
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrFr committed Oct 23, 2019
1 parent ff3227e commit e629375
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions repair/js/views/data-entry/actors-flows.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down
2 changes: 1 addition & 1 deletion repair/templates/dataentry/actors-flows.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ <h3> <%= casestudy %> > <%= keyflow %> > {% trans "Flows" %}</h3>
<div class="row">
<div class="col-md-2 bordered">
<span class="fa fa-cubes"></span> {% trans "Activity Groups" %} / <span class="fa fa-cube"></span> {% trans "Activities" %}
<div id="data-tree" style="overflow-x: auto; overflow-y:hidden; font-size: 0.9em;"></div>
<div id="data-tree" style="overflow-x: auto; overflow-y:auto; max-height: 500px; font-size: 0.9em;"></div>
</div>
<h3 id="select-activities-tip" class="row"><span class="glyphicon glyphicon-arrow-left"></span> {% trans "Select an activity by clicking its row to show the related actors." %}</h3>
<div class="col-md-3 bordered" id='actors-col'>
Expand Down

0 comments on commit e629375

Please sign in to comment.