~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

[r=bac][bug=777120] Fix the vocabulary of possible parents to use
        DSP. Fix initseries page to hide the rebuild option the
        distribution already has an initialized series.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1369
1369
                             "Copy Source and Binaries"])
1370
1370
            .set("choice", "Copy Source and Binaries")
1371
1371
            .render(form_table_body);
 
1372
    // Disable rebuilding if LP.cache['rebuilding_allowed'] is false.
 
1373
    if (!LP.cache['rebuilding_allowed']) {
 
1374
        package_copy_options.fieldNode
 
1375
            .one('input[value="Copy Source and Rebuild"]')
 
1376
            .set('disabled', 'disabled');
 
1377
        package_copy_options.set("description", (
 
1378
            "Note that you cannot rebuild sources because the " +
 
1379
            "distribution already has an initialized series."));
 
1380
    }
1372
1381
    var form_actions =
1373
1382
        new DeriveDistroSeriesActionsWidget({
1374
1383
            context: LP.cache.context,