From: Go MAEDA Date: Sun, 17 Jan 2021 02:23:14 +0000 (+0000) Subject: Web browser freezes when displaying a workflow page with a large number of issue... X-Git-Tag: 4.2.0~112 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4d3dec2dc0156369b789c8c51557c2c7001854ed;p=redmine.git Web browser freezes when displaying a workflow page with a large number of issue statuses (#34247). Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@20717 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/views/workflows/_form.html.erb b/app/views/workflows/_form.html.erb index 32639753c..429ccb4e6 100644 --- a/app/views/workflows/_form.html.erb +++ b/app/views/workflows/_form.html.erb @@ -40,7 +40,7 @@ <% for new_status in @statuses -%> <% checked = (old_status == new_status) || (transition_counts[[old_status, new_status]] > 0) %> - + <%= transition_tag transition_counts[[old_status, new_status]], old_status, new_status, name %> <% end -%> diff --git a/public/javascripts/application.js b/public/javascripts/application.js index b214f7540..feabd9ca9 100644 --- a/public/javascripts/application.js +++ b/public/javascripts/application.js @@ -1072,15 +1072,15 @@ function setupWikiTableSortableHeader() { } $(function () { - $('[title]').tooltip({ - show: { - delay: 400 - }, - position: { - my: "center bottom-5", - at: "center top" - } - }); + $("[title]:not(.no-tooltip)").tooltip({ + show: { + delay: 400 + }, + position: { + my: "center bottom-5", + at: "center top" + } + }); }); function inlineAutoComplete(element) {