~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: 2012-01-06 17:11:54 UTC
  • mfrom: (14565.3.17 inline_help_907443)
  • Revision ID: launchpad@pqm.canonical.com-20120106171154-fjgapb91cd49zzih
[r=deryck][bug=907443] Port the inlinehelp javascript from mochikit
        to YUI in lp.app.inlinehelp.

Show diffs side-by-side

added added

removed removed

Lines of Context:
115
115
    </script>
116
116
 
117
117
  <script id="base-layout-load-scripts" type="text/javascript">
118
 
    LPS.use('node', 'event-delegate', 'lp', 'lp.app.links', 'lp.app.longpoll', function(Y) {
 
118
    LPS.use('node', 'event-delegate', 'lp', 'lp.app.links', 'lp.app.longpoll',
 
119
        'lp.app.inlinehelp', function(Y) {
119
120
        Y.on('load', function(e) {
120
121
            sortables_init();
121
 
            initInlineHelp();
 
122
            Y.lp.app.inlinehelp.init_help();
122
123
            Y.lp.activate_collapsibles();
123
124
            activateFoldables();
124
125
            activateConstrainBugExpiration();
132
133
            Y.later(0, Y.lp.app.longpoll, Y.lp.app.longpoll.setupLongPollManager);
133
134
        }, window);
134
135
 
135
 
        // Hook up the function that dismisses the help window if we click
136
 
        // anywhere outside of it.
137
 
        Y.on('click', handleClickOnPage, window);
138
 
 
139
136
        Y.on('lp:context:web_link:changed', function(e) {
140
137
            window.location = e.new_value;
141
138
        });