Project

General

Profile

Actions

Bug #17570

closed

onContentLoad() is called twice on every page

Added by Tomer Brisker over 7 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Web Interface
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

From the jQuery docs:

when calling .trigger() with an event name matches the name of a property on the object, prefixed by on (e.g. triggering click on window that has a non null onclick method), jQuery will attempt to invoke that property as a method.

When the document loads we trigger a `ContentLoad` event, which causes jQuery to execute the function called `onContentLoad` by default. In addition, we attach a listener to the document that catches the `ContentLoad` event and executes the function as well.
We need to either rename the function or remove the extra listener.

Actions #1

Updated by The Foreman Bot over 7 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/4080 added
Actions #2

Updated by Daniel Lobato Garcia over 7 years ago

  • Target version set to 1.4.3
Actions #3

Updated by Anonymous over 7 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions #4

Updated by Dominic Cleal over 7 years ago

  • translation missing: en.field_release set to 210
Actions

Also available in: Atom PDF