~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/answers/templates/question-index.pt

Wire up question subscription portal

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
    </style>
19
19
    <script type="text/javascript">
20
20
        LPS.use('base', 'node', 'event',
21
 
                'lp.comments.hide', function(Y) {
 
21
                'lp.comments.hide', 'lp.answers.subscribers',
 
22
            function(Y) {
22
23
        Y.on('domready', function() {
23
24
            LP.cache.comment_context = LP.cache.context;
24
25
            Y.lp.comments.hide.setup_hide_controls();
 
26
 
 
27
            var question = { self_link: LP.cache.context.self_link,
 
28
                        web_link: LP.cache.context.web_link };
 
29
            var sl = new Y.lp.answers.subscribers.createQuestionSubscribersLoader({
 
30
                container_box: '#other-question-subscribers',
 
31
                question: question,
 
32
                subscribers_details_view:
 
33
                    '/+portlet-subscribers-details',
 
34
                subscribe_someone_else_link: '.menu-link-addsubscriber'
 
35
            });
 
36
 
25
37
        });
26
38
      });
27
39
    </script>
50
62
        </ul>
51
63
      </div>
52
64
      <div tal:replace="structure context/@@+global-actions" />
53
 
      <!-- TODO - wire up new javascript subscribers portlet -->
 
65
      <tal:subscribers replace="structure context/@@+portlet-subscribers"/>
54
66
    </metal:portlets>
55
67
 
56
68
    <div metal:fill-slot="main">