~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/app/javascript/picker/person_picker.js

  • Committer: Jelmer Vernooij
  • Date: 2011-09-21 14:28:02 UTC
  • mfrom: (14006 devel)
  • mto: This revision was merged to the branch mainline in revision 14010.
  • Revision ID: jelmer@canonical.com-20110921142802-7ggkc204igsy532w
MergeĀ lp:launchpad

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
        var assign_me_text = 'Pick me';
27
27
        var remove_person_text = 'Remove person';
28
28
        var remove_team_text = 'Remove team';
 
29
        var min_search_chars = 2;
29
30
        if (cfg !== undefined) {
30
31
            if (cfg.show_assign_me_button !== undefined) {
31
32
                show_assign_me_button = cfg.show_assign_me_button;
42
43
            if (cfg.remove_team_text !== undefined) {
43
44
                remove_team_text = cfg.remove_team_text;
44
45
            }
 
46
            if (cfg.min_search_chars !== undefined) {
 
47
                min_search_chars = cfg.min_search_chars;
 
48
            }
45
49
        }
 
50
        this.set('min_search_chars', min_search_chars);
 
51
 
46
52
        /* Only show assign-me when the user is logged-in. */
47
53
        show_assign_me_button = (
48
54
            show_assign_me_button && Y.Lang.isValue(LP.links.me));