~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/bugs/javascript/subscribers.js

  • Committer: Curtis Hovey
  • Date: 2011-08-12 14:39:51 UTC
  • mto: This revision was merged to the branch mainline in revision 13685.
  • Revision ID: curtis.hovey@canonical.com-20110812143951-74vfvrt37gtt4fz2
Sorted imports.

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
 *     a relative URI to load subscribers' details from.
42
42
 */
43
43
function createBugSubscribersLoader(config) {
44
 
    var url_data = LP.cache.subscribers_portlet_url_data;
45
 
    if (!Y.Lang.isValue(url_data)) {
46
 
        url_data = { self_link: LP.cache.context.bug_link,
47
 
                    web_link: LP.cache.context.web_link };
48
 
    }
49
44
    config.subscriber_levels = subscriber_levels;
50
45
    config.subscriber_level_order = subscriber_level_order;
51
 
    config.context = url_data;
 
46
    config.context = config.bug;
52
47
    config.subscribe_someone_else_level = 'Discussion';
53
48
    config.default_subscriber_level = 'Maybe';
54
49
    var module = Y.lp.app.subscribers.subscribers_list;