~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/app/templates/base-layout-macros.pt

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-10-03 18:24:41 UTC
  • mfrom: (14090.1.3 longpoll-cursor)
  • Revision ID: launchpad@pqm.canonical.com-20111003182441-h75mnhoi5ey9romr
[r=allenap][no-qa] Fire the longpoll request after the page has
        loaded.

Show diffs side-by-side

added added

removed removed

Lines of Context:
132
132
            activateConstrainBugExpiration();
133
133
            Y.lp.app.links.check_valid_lp_links();
134
134
            // Longpolling will only start if
135
 
            // LP.cache.longpoll is populated.
136
 
            Y.lp.app.longpoll.setupLongPollManager();
 
135
            // LP.cache.longpoll is populated.
 
136
            // We use Y.later to work around a Safari/Chrome 'feature':
 
137
            // The mouse cursor stays 'busy' until all the requests started during
 
138
            // page load are finished.  Hence we want the long poll request to start
 
139
            // right *after* the page has loaded.
 
140
            Y.later(0, Y.lp.app.longpoll, Y.lp.app.longpoll.setupLongPollManager);
137
141
        }, window);
138
142
 
139
143
        // Hook up the function that dismisses the help window if we click