From 4d3dec2dc0156369b789c8c51557c2c7001854ed Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Sun, 17 Jan 2021 02:23:14 +0000 Subject: [PATCH] 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 --- app/views/workflows/_form.html.erb | 2 +- public/javascripts/application.js | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) 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) { -- 2.39.5