Project

General

Profile

Actions

Defect #34998

closed

Cannot open journal dropdown menu after editing note

Added by Mizuki ISHIKAWA almost 3 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
UI
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

After rewriting the journal note, clicking the journal dropdown does not open the menu. Reloading will fix the menu to open.

Updating the journal note runs the following code to redraw the journal actions. The problem is that the .drdn-trigger click event is not set in the dropdown that was redrawn at that time.

  // https://www.redmine.org/projects/redmine/repository/revisions/20875/entry/trunk/app/views/journals/update.js.erb#L5
  $("#change-<%= @journal.id %> .journal-actions").html('<%= escape_javascript(render_journal_actions(@journal.issue, @journal, :reply_links => authorize_for('issues', 'edit'))) %>');

Related to #34714.


Files

screenshot-2021-04-01-9.00.30.png (25.5 KB) screenshot-2021-04-01-9.00.30.png Mizuki ISHIKAWA, 2021-04-01 02:08
Actions

Also available in: Atom PDF