~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/bugs/javascript/bugtask_index.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:
164
164
 * @method setup_client_and_bug
165
165
 */
166
166
function setup_client_and_bug() {
167
 
    lp_client = new LP.client.Launchpad();
 
167
    lp_client = new Y.lp.client.Launchpad();
168
168
 
169
169
    if (bug_repr === undefined) {
170
170
        bug_repr = LP.cache.bug;
171
 
        lp_bug_entry = new LP.client.Entry(
 
171
        lp_bug_entry = new Y.lp.client.Entry(
172
172
            lp_client, bug_repr, bug_repr.self_link);
173
173
    }
174
174
}
333
333
    privacy_spinner.setStyle('display', 'inline');
334
334
 
335
335
    if (lp_client === undefined) {
336
 
        lp_client = new LP.client.Launchpad();
 
336
        lp_client = new Y.lp.client.Launchpad();
337
337
    }
338
338
 
339
339
    if (lp_bug_entry === undefined) {
340
340
        var bug_repr = LP.cache.bug;
341
 
        lp_bug_entry = new LP.client.Entry(
 
341
        lp_bug_entry = new Y.lp.client.Entry(
342
342
            lp_client, bug_repr, bug_repr.self_link);
343
343
    }
344
344
 
348
348
 
349
349
    lp_bug_entry.set('private', private_flag);
350
350
    lp_bug_entry.set('security_related', security_related);
351
 
    var error_handler = new LP.client.ErrorHandler();
 
351
    var error_handler = new Y.lp.client.ErrorHandler();
352
352
    error_handler.clearProgressUI = function () {
353
353
        privacy_spinner.setStyle('display', 'none');
354
354
        privacy_link.setStyle('display', 'inline');
417
417
function setup_link_branch_picker() {
418
418
    setup_client_and_bug();
419
419
 
420
 
    var error_handler = new LP.client.ErrorHandler();
 
420
    var error_handler = new Y.lp.client.ErrorHandler();
421
421
 
422
422
    error_handler.clearProgressUI = function () {
423
423
        link_branch_link.toggleClass('update-in-progress-message');
461
461
 *                        the Launchpad API.
462
462
 */
463
463
function link_branch_to_bug(branch) {
464
 
    var error_handler = new LP.client.ErrorHandler();
 
464
    var error_handler = new Y.lp.client.ErrorHandler();
465
465
    error_handler.clearProgressUI = function () {
466
466
        link_branch_link.toggleClass('update-in-progress-message');
467
467
    };
485
485
                            add_branch_to_linked_branches(branch_html);
486
486
                        }
487
487
                    },
488
 
                    accept: LP.client.XHTML
 
488
                    accept: Y.lp.client.XHTML
489
489
                };
490
490
                lp_client.get(bug_branch_entry.get('self_link'), config);
491
491
            },
822
822
Y.extend(MeTooChoiceSource, Y.ChoiceSource, {
823
823
    initializer: function() {
824
824
        var widget = this;
825
 
        this.error_handler = new LP.client.ErrorHandler();
 
825
        this.error_handler = new Y.lp.client.ErrorHandler();
826
826
        this.error_handler.clearProgressUI = function() {
827
827
            widget._uiClearWaiting();
828
828
        };
893
893
        this._uiSetWaiting();
894
894
 
895
895
        var value = this.getInput();
896
 
        var client =  new LP.client.Launchpad();
 
896
        var client =  new Y.lp.client.Launchpad();
897
897
        var widget = this;
898
898
 
899
899
        var config = {
939
939
                        "json-parse", "substitute", "widget-position-ext",
940
940
                        "lazr.formoverlay", "lazr.anim", "lazr.base",
941
941
                        "lazr.overlay", "lazr.choiceedit", "lp.app.picker",
 
942
                        "lp.client",
942
943
                        "lp.client.plugins", "lp.bugs.bugtask_index.portlets",
943
944
                        "lp.bugs.subscriber", "lp.app.errors"]});