~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-07-07 18:11:36 UTC
  • mfrom: (13371.3.5 lp-app-longpoll-js)
  • Revision ID: launchpad@pqm.canonical.com-20110707181136-ktyxnt0dpp3vw93f
[r=abentley][no-qa] New lp.app.longpoll package (js side).

Show diffs side-by-side

added added

removed removed

Lines of Context:
107
107
  <metal:load-lavascript use-macro="context/@@+base-layout-macros/load-javascript" />
108
108
 
109
109
  <script id="base-layout-load-scripts" type="text/javascript">
110
 
    LPS.use('node', 'event-delegate', 'lp', 'lp.app.links', function(Y) {
 
110
    LPS.use('node', 'event-delegate', 'lp', 'lp.app.links', 'lp.app.longpoll', function(Y) {
111
111
        Y.on('load', function(e) {
112
112
            sortables_init();
113
113
            initInlineHelp();
114
114
            Y.lp.activate_collapsibles();
115
115
            activateFoldables();
116
116
            activateConstrainBugExpiration();
117
 
            Y.lp.app.links.check_valid_lp_links();
 
117
            Y.lp.app.links.check_valid_lp_links();
 
118
            // Longpolling will only start if
 
119
            // LP.cache.longpoll is populated.
 
120
            Y.lp.app.longpoll.setupLongPollManager();
118
121
        }, window);
119
122
 
120
123
        // Hook up the function that dismisses the help window if we click