if ($("body").hasClass("controller-issues") && $("body").hasClass("action-index")) {
$("tr.issue").click(quick_view_issue_click);
$("tr.issue").dblclick(quick_view_issue_dblclick);
+ <% if Setting.plugin_quick_view['issue_tooltip_enabled'] == "on" %>
quick_view_tooltip_init($("tr.issue > td.subject > a"), quick_view_href_issue_id_parser);
quick_view_tooltip_init($("tr.issue > td.id > a"), quick_view_href_issue_id_parser);
+ <% end %>
}
if ($("body").hasClass("controller-issues") && $("body").hasClass("action-show")) {
$("tr.issue").click(quick_view_issue_click);
$("tr.issue").dblclick(quick_view_issue_dblclick);
+ <% if Setting.plugin_quick_view['issue_tooltip_enabled'] == "on" %>
quick_view_tooltip_init($("tr.issue > td.subject > a"), quick_view_href_issue_id_parser);
quick_view_tooltip_init($("a.issue"), quick_view_href_issue_id_parser);
+ <% end %>
}
if ($("body").hasClass("controller-my")) {
$("tr.issue").click(quick_view_issue_click);
$("tr.issue").dblclick(quick_view_issue_dblclick);
+ <% if Setting.plugin_quick_view['issue_tooltip_enabled'] == "on" %>
quick_view_tooltip_init($("tr.issue > td.subject > a"), quick_view_href_issue_id_parser);
quick_view_tooltip_init($("tr.issue > td.id > a"), quick_view_href_issue_id_parser);
+ <% end %>
}
function quick_view_href_issue_id_parser(current_target) {
<table>
<tr>
+ <th>Issue tooltip enabled:</th>
+ <td>
+ <input type="checkbox" id="settings_issue_tooltip_enabled" name="settings[issue_tooltip_enabled]" <%= settings['issue_tooltip_enabled'] == "on" ? "checked" : "" %>></input>
+ </td>
+ <td style="color: red;">
+ <%= l(:server_load_increase) %>
+ </td>
+ </tr>
+ <tr>
<th>WorkTime Extension(dialog anchor) enabled:</th>
<td>
<input type="checkbox" id="settings_worktime_ext_dialog_anchor_enabled" name="settings[worktime_ext_dialog_anchor_enabled]" <%= settings['worktime_ext_dialog_anchor_enabled'] == "on" ? "checked" : "" %>></input>