~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/bugs/javascript/buglisting.js

  • Committer: Aaron Bentley
  • Date: 2011-10-13 19:51:50 UTC
  • mto: (14128.9.2 new-bug-fields)
  • mto: This revision was merged to the branch mainline in revision 14193.
  • Revision ID: aaron@canonical.com-20111013195150-ucvrfwjlesx0im10
UseĀ featureĀ flag.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
lp_client = new Y.lp.client.Launchpad();
15
15
 
16
16
namespace.rendertable = function(){
 
17
    client_listing = Y.one('#client-listing');
 
18
    if (client_listing === null){
 
19
        return;
 
20
    }
17
21
    var template = '{{#bugtasks}}' +
18
22
        '<tr><td><table>' +
19
23
        '    <tr><td class={{importance_class}}>{{importance}}</td></tr>' +
29
33
        '</tr>' +
30
34
        '{{/bugtasks}}';
31
35
    var txt = Mustache.to_html(template, LP.cache.mustache_model);
32
 
    Y.one('#client-listing').set('innerHTML', txt);
 
36
    client_listing.set('innerHTML', txt);
33
37
}
34
38
 
35
39
}, "0.1", {"requires": ["node"]});