Project

General

Profile

Actions

Bug #37594

closed

"Scroll bottom" "Scroll top" links in Job invocation details are broken

Added by Adam Ruzicka 5 months ago. Updated 4 months ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
No
Found in Releases:

Description

"Scroll bottom" "Scroll top" links in Job invocation details are broken

Description of problem:  
After executing an "Ansible command" job the details page shows two links "scroll bottom" and "scroll top" but none of them works.

Steps to Reproduce:
1. Execute a "Remote Ansible Command" job
2. Enter into the Job details page
3. Click "Scroll to bottom" Link

Actual behavior:
Nothing happens

Expected behavior:
The page scrolls down.

Proposed solution:
The javascript code executed on the "a href" not longer works because content is not into "body" tag but into "rails-app-content" div. Replace current javascript code for something similar to below code should fix it:
- "Scroll bottom" link. {code:java}
$('#rails-app-content').scrollTop($('#rails-app-content').prop("scrollHeight")){code}

- The same way "Scroll top" link could read:

{code:java}
$('#rails-app-content').scrollTop(0){code}

Actions #1

Updated by The Foreman Bot 5 months ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman_remote_execution/pull/909 added
Actions #2

Updated by The Foreman Bot 4 months ago

  • Fixed in Releases foreman_remote_execution-13.2.4 added
Actions #3

Updated by Pablo Fernández Rodríguez 4 months ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF