~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/code/javascript/branch.bugspeclinks.js

Rename lazr.anim to lp.anim.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
 * Code for handling links to branches from bugs and specs.
5
5
 *
6
6
 * @module BranchLinks
7
 
 * @requires base, lazr.anim, lazr.formoverlay
 
7
 * @requires base, lp.anim, lazr.formoverlay
8
8
 */
9
9
 
10
10
YUI.add('lp.code.branch.bugspeclinks', function(Y) {
117
117
    var existing = Y.one('#buglink-' + bugnumber);
118
118
    if (Y.Lang.isValue(existing)) {
119
119
        // Bug is already linked, don't do unneccessary requests.
120
 
        Y.lazr.anim.green_flash({node: existing}).run();
 
120
        Y.lp.anim.green_flash({node: existing}).run();
121
121
        return;
122
122
    }
123
123
 
165
165
                Y.one('#buglink-list')
166
166
                    .set('innerHTML', response.responseText);
167
167
                var new_buglink = Y.one('#buglink-' + bug.get('id'));
168
 
                var anim = Y.lazr.anim.green_flash({node: new_buglink});
 
168
                var anim = Y.lp.anim.green_flash({node: new_buglink});
169
169
                anim.on('end', connect_remove_links);
170
170
                anim.run();
171
171
            },
196
196
                success: function(updated_entry) {
197
197
                    var element = Y.one('#buglink-' + bugnumber);
198
198
                    var parent_element = element.get('parentNode');
199
 
                    anim = Y.lazr.anim.red_flash({node: element});
 
199
                    anim = Y.lp.anim.red_flash({node: element});
200
200
                    anim.on('end', function() {
201
201
                        parent_element.removeChild(element);
202
202
 
292
292
 
293
293
}
294
294
 
295
 
}, "0.1", {"requires": ["base", "lazr.anim", "lazr.formoverlay",
 
295
}, "0.1", {"requires": ["base", "lp.anim", "lazr.formoverlay",
296
296
                        "lp.client", "lp.client.plugins"]});