~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-02-25 06:14:13 UTC
  • mfrom: (12435.2.14 lp-client-yui-module)
  • Revision ID: launchpad@pqm.canonical.com-20110225061413-ly79zwkk40kvk7jt
[r=flacoste][bug=724004][incr][no-qa] Make LP.client methods actually
        be a YUI module 'lp.client'.

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
        addmember_link.removeClass('unseen');
40
40
        spinner.addClass('unseen');
41
41
    };
42
 
    lp_client = new LP.client.Launchpad();
 
42
    lp_client = new Y.lp.client.Launchpad();
43
43
 
44
 
    var error_handler = new LP.client.ErrorHandler();
 
44
    var error_handler = new Y.lp.client.ErrorHandler();
45
45
    error_handler.clearProgressUI = disable_spinner;
46
46
    error_handler.showError = function(error_msg) {
47
47
        Y.lp.app.errors.display_error(addmember_link, error_msg);
114
114
                        success: xhtml_person_handler,
115
115
                        failure: error_handler.getFailureHandler()
116
116
                    },
117
 
                    accept: LP.client.XHTML
 
117
                    accept: Y.lp.client.XHTML
118
118
                };
119
119
                lp_client.get(selected_person.api_uri, xhtml_person_config);
120
120
            },
124
124
            // XXX: EdwinGrubbs 2009-12-16 bug=497602
125
125
            // Why do I always have to get absolute URIs out of the URIs
126
126
            // in the picker's result/client.links?
127
 
            reviewer: LP.client.get_absolute_uri(LP.links.me),
128
 
            person: LP.client.get_absolute_uri(selected_person.api_uri)
 
127
            reviewer: Y.lp.client.get_absolute_uri(LP.links.me),
 
128
            person: Y.lp.client.get_absolute_uri(selected_person.api_uri)
129
129
        }
130
130
    };
131
131
 
133
133
        LP.cache.context.self_link, 'addMember', addmember_config);
134
134
};
135
135
 
136
 
}, '0.1', {requires: [
137
 
    'node', 'lazr.anim', 'lp.app.picker', 'lp.app.errors', 'lp.client.plugins'
138
 
    ]});
 
136
}, '0.1', {requires: ['node',
 
137
                      'lazr.anim',
 
138
                      'lp.app.errors',
 
139
                      'lp.app.picker',
 
140
                      'lp.client',
 
141
                      'lp.client.plugins'
 
142
                      ]});