~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/registry/javascript/distroseries/widgets.js

Use Y.substitute instead of by-hand string hacking.

Show diffs side-by-side

added added

removed removed

Lines of Context:
563
563
            return {
564
564
                data: packageset,
565
565
                value: packageset.get("id"),
566
 
                text: (
567
 
                    packageset.get("name") + ": " +
568
 
                    packageset.get("description") +
569
 
                    " (" + distroseries.title + ") ")
 
566
                text: Y.substitute(
 
567
                    "{name}: {desc} ({title})", {
 
568
                        name: packageset.get("name"),
 
569
                        desc: packageset.get("description"),
 
570
                        title: distroseries.title
 
571
                    })
570
572
            };
571
573
        });
572
574
        this.add_choices(choices);
616
618
}, "0.1", {"requires": [
617
619
               "node", "dom", "io", "widget", "lp.client",
618
620
               "lp.app.formwidgets", "lazr.anim", "array-extras",
619
 
               "transition"]});
 
621
               "substitute", "transition"]});