delaying FormOverlay.loadFormContentAndRender() till the widget is needed

Bug #596130 reported by Edwin Grubbs
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Triaged
Low
Unassigned

Bug Description

It is difficult to defer loading the form for the FormOverlay until a user clicks on a link, since it doesn't give you access to the success handler, and handling the io:complete event is problematic since you have to ignore any other io:complete events for different pages or widgets.

For example, this code snippet would make the io call first, but before the asynchronous io call completed, the widget would be shown, so it would appear briefly without any content. Also, it is confusing that you have to call render() on the widget, since the method loadFormContentAndRender() only calls renderUI(), which is insufficient.

  link.on('click', function() {
    form_overlay.loadFormContentAndRender();
    form_overlay.render();
    form_overlay.show();
  }

Tags: javascript
Paul Hummer (rockstar)
Changed in lazr-js:
status: New → Triaged
importance: Undecided → Medium
affects: lazr-js → launchpad
Changed in launchpad:
importance: Medium → Low
tags: added: javascript
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.