~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

[r=allenap][bug=809786] Split out the non-DistroSeries-specific
        widgets from lp.registry.distroseries.widgets into a new
        lp.all.formwidgets module.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 * Copyright 2011 Canonical Ltd. This software is licensed under the
3
3
 * GNU Affero General Public License version 3 (see the file LICENSE).
4
4
 *
5
 
 * DistroSeries related stuff.
 
5
 * DistroSeries Initialization.
6
6
 *
7
 
 * @module registry
8
 
 * @submodule distroseries
 
7
 * @module lp.registry.distroseries
 
8
 * @submodule initseries
9
9
 */
10
10
 
11
11
YUI.add('lp.registry.distroseries.initseries', function(Y) {
15
15
var namespace = Y.namespace('lp.registry.distroseries.initseries');
16
16
 
17
17
var widgets = Y.lp.registry.distroseries.widgets;
 
18
var formwidgets = Y.lp.app.formwidgets;
18
19
 
19
20
 
20
21
/**
35
36
 
36
37
});
37
38
 
38
 
Y.extend(DeriveDistroSeriesActionsWidget, widgets.FormActionsWidget, {
 
39
Y.extend(DeriveDistroSeriesActionsWidget, formwidgets.FormActionsWidget, {
39
40
 
40
41
    initializer: function(config) {
41
42
        this.context = config.context;
206
207
                .render(form_table_body);
207
208
    }
208
209
    var package_copy_options =
209
 
        new widgets.ChoiceListWidget()
 
210
        new formwidgets.ChoiceListWidget()
210
211
            .set("name", "field.package_copy_options")
211
212
            .set("type", "radio")
212
213
            .set("label", "Copy options:")
305
306
 
306
307
}, "0.1", {"requires": ["node", "dom", "io", "widget", "array-extras",
307
308
                        "transition", "lp.registry.distroseries.widgets",
308
 
                        "lp.app.picker"]});
 
309
                        "lp.app.formwidgets", "lp.app.picker"]});