~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-06-21 01:24:40 UTC
  • mfrom: (13168.9.8 auto-upgrade-fix)
  • Revision ID: launchpad@pqm.canonical.com-20110621012440-waa76gmxu72in1i8
[r=henninge][bug=798560] Use scanner-compatible directory names when
        upgrading code import branches.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
 *     config.null_display_value: Override the default 'None' text.
26
26
 *     config.show_remove_button: Should the remove button be shown?
27
27
 *         Defaults to false, should be a boolean.
28
 
 *     config.show_assign_me_button: Should the 'assign me' button be shown?
 
28
 *     config.show_assign_me_botton: Should the 'assign me' button be shown?
29
29
 *         Defaults to false, should be a boolean.
30
30
 *     config.show_search_box: Should the search box be shown.
31
31
 *         Vocabularies that are not huge should not have a search box.
89
89
        var link = content_box.one('.yui3-activator-data-box a');
90
90
        if (remove_button) {
91
91
            if (link === null || !show_remove_button) {
92
 
                remove_button.addClass('yui3-picker-hidden');
 
92
                remove_button.addClass('yui-picker-hidden');
93
93
            } else {
94
 
                remove_button.removeClass('yui3-picker-hidden');
 
94
                remove_button.removeClass('yui-picker-hidden');
95
95
            }
96
96
        }
97
97
 
98
98
        if (assign_me_button) {
99
99
            if (link !== null
100
100
                && link.get('href').indexOf(LP.links.me + '/') !== -1) {
101
 
                assign_me_button.addClass('yui3-picker-hidden');
 
101
                assign_me_button.addClass('yui-picker-hidden');
102
102
            } else {
103
 
                assign_me_button.removeClass('yui3-picker-hidden');
 
103
                assign_me_button.removeClass('yui-picker-hidden');
104
104
            }
105
105
        }
106
106
    };
323
323
            text_input.value = select_menu.value;
324
324
        };
325
325
        Y.on('change', copy_selected_value, select_menu);
326
 
    }
 
326
    };
327
327
};
328
328
 
329
329
/**