~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/app/widgets/templates/form-picker-macros.pt

[r=abentley][bug=801388,
        806179] Re-lands wallyworlds fix to keep the assign me button from
        appearing in goofy places,
        and fixes a problem that prevented personpickers from rendering.

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
                extra_no_results_message: ${view/extra_no_results_message},
44
44
                picker_type: '${view/picker_type}'
45
45
            };
 
46
            if (config.picker_type == 'person') {
 
47
                config.show_assign_me_button = ${view/show_assign_me_button}
 
48
                config.show_remove_button = ${view/show_remove_button}
 
49
            }
46
50
            var picker = Y.lp.app.picker.create('${view/vocabulary_name}', config);
47
51
            if (config.extra_no_results_message !== null) {
48
52
                picker.before('resultsChange', function (e) {