Commit 2520e29bf8c33fdec4e0420c37a623d0f580031f

Authored by Fellipe Souto Sampaio
Committed by Guilherme Rojas
1 parent 643a03b5

Added javascript popover comment event

Pending fix the color field
app/assets/javascripts/application.js
... ... @@ -18,3 +18,8 @@
18 18 //= require modules
19 19 //= require Chart
20 20 //= require_tree .
  21 +
  22 +
  23 +$(function ()
  24 +{ $("#comments").popover();
  25 +});
21 26 \ No newline at end of file
... ...
app/views/metric_configurations/_ranges.html.erb
1 1 <tr>
2   - <td style="color: #<%= mezuro_range.color %>"><%= mezuro_range.label %></td>
  2 + <td style="color: #<%= mezuro_range.color %>">
  3 + <div>
  4 + <a type="button" id="comments" rel="popover" data-placement="left" data-original-title="Comments" data-content="<%= mezuro_range.comments %>">
  5 + Popover on left
  6 + </a>
  7 + </div>
  8 + </td>
3 9 <td><%= mezuro_range.beginning %></td>
4 10 <td><%= mezuro_range.end %></td>
5 11 <td>
... ...