mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-11 15:45:34 +08:00
Add tooltip to task names [SCI-6607] (#4109)
This commit is contained in:
parent
054ce72d25
commit
5ceab30aa7
5 changed files with 7 additions and 6 deletions
|
@ -1465,8 +1465,9 @@ function initEditModules() {
|
||||||
var moduleId = modal.attr("data-module-id");
|
var moduleId = modal.attr("data-module-id");
|
||||||
var moduleEl = $("#" + moduleId);
|
var moduleEl = $("#" + moduleId);
|
||||||
// Update the module's name in GUI
|
// Update the module's name in GUI
|
||||||
moduleEl.attr("data-module-name", newName);
|
moduleEl.attr('data-module-name', newName);
|
||||||
moduleEl.find(".panel-heading .panel-title").html(newName);
|
moduleEl.find('.panel-heading .panel-title').attr('title', newName);
|
||||||
|
moduleEl.find('.panel-heading .panel-title').html(newName);
|
||||||
|
|
||||||
// Add this information to form
|
// Add this information to form
|
||||||
var formAddInput = $('#update-canvas form input#add');
|
var formAddInput = $('#update-canvas form input#add');
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
|
|
||||||
<h3 class="panel-title"><%= my_module.name %></h3>
|
<h3 class="panel-title", title="<%= my_module.name %>"><%= my_module.name %></h3>
|
||||||
|
|
||||||
<div class="dropdown module-options-dropdown pull-right module-options" data-dropdown-menu-path="<%= canvas_dropdown_menu_my_module_path(my_module) %>">
|
<div class="dropdown module-options-dropdown pull-right module-options" data-dropdown-menu-path="<%= canvas_dropdown_menu_my_module_path(my_module) %>">
|
||||||
<a class="dropdown-toggle" id="<%= my_module.id %>_options" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
|
<a class="dropdown-toggle" id="<%= my_module.id %>_options" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
|
||||||
|
|
|
@ -41,7 +41,7 @@
|
||||||
|
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<h3 class="panel-title">
|
<h3 class="panel-title">
|
||||||
<%= link_to my_module.name, protocols_my_module_path(my_module), class: 'my-module-title' %>
|
<%= link_to my_module.name, protocols_my_module_path(my_module), title: my_module.name, class: 'my-module-title' %>
|
||||||
</h3>
|
</h3>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
|
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<h3 class="panel-title">
|
<h3 class="panel-title">
|
||||||
<%= link_to_if can_read_experiment?(my_module.experiment), my_module.name, protocols_my_module_path(my_module) %>
|
<%= link_to_if can_read_experiment?(my_module.experiment), my_module.name, protocols_my_module_path(my_module), title: my_module.name %>
|
||||||
</h3>
|
</h3>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -10,6 +10,6 @@
|
||||||
data-module-y="<%= my_module.y %>"
|
data-module-y="<%= my_module.y %>"
|
||||||
data-module-conns="<%= construct_module_connections(my_module) %>">
|
data-module-conns="<%= construct_module_connections(my_module) %>">
|
||||||
<span>
|
<span>
|
||||||
<%= link_to_if can_read_experiment?(my_module.experiment), my_module.name[0], protocols_my_module_path(my_module) %>
|
<%= link_to_if can_read_experiment?(my_module.experiment), my_module.name[0], protocols_my_module_path(my_module), title: my_module.name %>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Reference in a new issue