Merge lp:~rockstar/launchpad/code-js-reorg into lp:launchpad
- code-js-reorg
- Merge into devel
Proposed by
Paul Hummer
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Graham Binns | ||||
Approved revision: | no longer in the source branch. | ||||
Merged at revision: | not available | ||||
Proposed branch: | lp:~rockstar/launchpad/code-js-reorg | ||||
Merge into: | lp:launchpad | ||||
Diff against target: |
343 lines (+49/-47) 11 files modified
lib/canonical/launchpad/javascript/code/branchlinks.js (+4/-4) lib/canonical/launchpad/javascript/code/branchmergeproposal.js (+5/-5) lib/canonical/launchpad/javascript/code/branchstatus.js (+4/-4) lib/canonical/launchpad/javascript/code/codereview.js (+9/-7) lib/canonical/launchpad/javascript/code/popupdiff.js (+6/-6) lib/canonical/launchpad/javascript/code/subscription.js (+4/-4) lib/canonical/launchpad/windmill/jstests/launchpad_ajax.js (+2/-2) lib/lp/bugs/templates/bugtask-index.pt (+2/-2) lib/lp/code/templates/branch-index.pt (+6/-6) lib/lp/code/templates/branch-related-bugs-specs.pt (+2/-2) lib/lp/code/templates/branchmergeproposal-index.pt (+5/-5) |
||||
To merge this branch: | bzr merge lp:~rockstar/launchpad/code-js-reorg | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Graham Binns (community) | code | Approve | |
Review via email: mp+20170@code.launchpad.net |
Commit message
Description of the change
To post a comment you must log in.
Revision history for this message
Paul Hummer (rockstar) wrote : | # |
Revision history for this message
Graham Binns (gmb) : | # |
review:
Approve
(code)
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'lib/canonical/launchpad/javascript/code/branchlinks.js' | |||
2 | --- lib/canonical/launchpad/javascript/code/branchlinks.js 2009-11-24 09:30:01 +0000 | |||
3 | +++ lib/canonical/launchpad/javascript/code/branchlinks.js 2010-03-11 19:22:24 +0000 | |||
4 | @@ -7,9 +7,9 @@ | |||
5 | 7 | * @requires base, lazr.anim, lazr.formoverlay | 7 | * @requires base, lazr.anim, lazr.formoverlay |
6 | 8 | */ | 8 | */ |
7 | 9 | 9 | ||
9 | 10 | YUI.add('code.branchlinks', function(Y) { | 10 | YUI.add('lp.code.branchlinks', function(Y) { |
10 | 11 | 11 | ||
12 | 12 | Y.branchlinks = Y.namespace('code.branchlinks'); | 12 | var namespace = Y.namespace('lp.code.branchlinks'); |
13 | 13 | 13 | ||
14 | 14 | var lp_client; // The LP client | 14 | var lp_client; // The LP client |
15 | 15 | 15 | ||
16 | @@ -20,7 +20,7 @@ | |||
17 | 20 | /* | 20 | /* |
18 | 21 | * Connect the links to the javascript events. | 21 | * Connect the links to the javascript events. |
19 | 22 | */ | 22 | */ |
21 | 23 | Y.branchlinks.connect_branchlinks = function() { | 23 | namespace.connect_branchlinks = function() { |
22 | 24 | 24 | ||
23 | 25 | error_handler = new LP.client.ErrorHandler(); | 25 | error_handler = new LP.client.ErrorHandler(); |
24 | 26 | error_handler.clearProgressUI = function() { | 26 | error_handler.clearProgressUI = function() { |
25 | @@ -163,7 +163,7 @@ | |||
26 | 163 | 163 | ||
27 | 164 | // Check to see if that was the only bug linked. | 164 | // Check to see if that was the only bug linked. |
28 | 165 | var buglinks = Y.all(".bug-branch-summary"); | 165 | var buglinks = Y.all(".bug-branch-summary"); |
30 | 166 | if (buglinks.size() == 0) { | 166 | if (!buglinks.size()) { |
31 | 167 | Y.one('#linkbug').set('innerHTML', | 167 | Y.one('#linkbug').set('innerHTML', |
32 | 168 | 'Link to a bug report'); | 168 | 'Link to a bug report'); |
33 | 169 | } | 169 | } |
34 | 170 | 170 | ||
35 | === modified file 'lib/canonical/launchpad/javascript/code/branchmergeproposal.js' | |||
36 | --- lib/canonical/launchpad/javascript/code/branchmergeproposal.js 2010-02-25 00:39:57 +0000 | |||
37 | +++ lib/canonical/launchpad/javascript/code/branchmergeproposal.js 2010-03-11 19:22:24 +0000 | |||
38 | @@ -1,19 +1,19 @@ | |||
39 | 1 | /** Copyright (c) 2009, Canonical Ltd. All rights reserved. | 1 | /** Copyright (c) 2009, Canonical Ltd. All rights reserved. |
40 | 2 | * | 2 | * |
42 | 3 | * Code for handling the update of the branch status. | 3 | * Code for handling the update of the branch merge proposals. |
43 | 4 | * | 4 | * |
45 | 5 | * @module branchstatus | 5 | * @module lp.code.branchmergeproposal |
46 | 6 | * @requires node, lazr.choiceedit, lp.client.plugins | 6 | * @requires node, lazr.choiceedit, lp.client.plugins |
47 | 7 | */ | 7 | */ |
48 | 8 | 8 | ||
50 | 9 | YUI.add('code.branchmergeproposal', function(Y) { | 9 | YUI.add('lp.code.branchmergeproposal', function(Y) { |
51 | 10 | 10 | ||
53 | 11 | Y.code.branchmergeproposal = Y.namespace('code.branchmergeproposal'); | 11 | var namespace = Y.namespace('lp.code.branchmergeproposal'); |
54 | 12 | 12 | ||
55 | 13 | /* | 13 | /* |
56 | 14 | * Connect the branch status to the javascript events. | 14 | * Connect the branch status to the javascript events. |
57 | 15 | */ | 15 | */ |
59 | 16 | Y.code.branchmergeproposal.connect_status = function(conf) { | 16 | namespace.connect_status = function(conf) { |
60 | 17 | 17 | ||
61 | 18 | var status_content = Y.get('#branchmergeproposal-status-value'); | 18 | var status_content = Y.get('#branchmergeproposal-status-value'); |
62 | 19 | 19 | ||
63 | 20 | 20 | ||
64 | === modified file 'lib/canonical/launchpad/javascript/code/branchstatus.js' | |||
65 | --- lib/canonical/launchpad/javascript/code/branchstatus.js 2009-11-24 09:30:01 +0000 | |||
66 | +++ lib/canonical/launchpad/javascript/code/branchstatus.js 2010-03-11 19:22:24 +0000 | |||
67 | @@ -3,18 +3,18 @@ | |||
68 | 3 | * | 3 | * |
69 | 4 | * Code for handling the update of the branch status. | 4 | * Code for handling the update of the branch status. |
70 | 5 | * | 5 | * |
72 | 6 | * @module branchstatus | 6 | * @module lp.code.branchstatus |
73 | 7 | * @requires node, lazr.choiceedit, lp.client.plugins | 7 | * @requires node, lazr.choiceedit, lp.client.plugins |
74 | 8 | */ | 8 | */ |
75 | 9 | 9 | ||
77 | 10 | YUI.add('code.branchstatus', function(Y) { | 10 | YUI.add('lp.code.branchstatus', function(Y) { |
78 | 11 | 11 | ||
80 | 12 | Y.branchstatus = Y.namespace('code.branchstatus'); | 12 | var namespace = Y.namespace('lp.code.branchstatus'); |
81 | 13 | 13 | ||
82 | 14 | /* | 14 | /* |
83 | 15 | * Connect the branch status to the javascript events. | 15 | * Connect the branch status to the javascript events. |
84 | 16 | */ | 16 | */ |
86 | 17 | Y.branchstatus.connect_status = function(conf) { | 17 | namespace.connect_status = function(conf) { |
87 | 18 | 18 | ||
88 | 19 | var status_content = Y.one('#branch-details-status-value'); | 19 | var status_content = Y.one('#branch-details-status-value'); |
89 | 20 | 20 | ||
90 | 21 | 21 | ||
91 | === modified file 'lib/canonical/launchpad/javascript/code/codereview.js' | |||
92 | --- lib/canonical/launchpad/javascript/code/codereview.js 2010-02-23 09:31:13 +0000 | |||
93 | +++ lib/canonical/launchpad/javascript/code/codereview.js 2010-03-11 19:22:24 +0000 | |||
94 | @@ -3,13 +3,13 @@ | |||
95 | 3 | * | 3 | * |
96 | 4 | * Library for code review javascript. | 4 | * Library for code review javascript. |
97 | 5 | * | 5 | * |
99 | 6 | * @module CodeReview | 6 | * @module lp.code.codereview |
100 | 7 | * @requires base, lazr.anim, lazr.formoverlay | 7 | * @requires base, lazr.anim, lazr.formoverlay |
101 | 8 | */ | 8 | */ |
102 | 9 | 9 | ||
104 | 10 | YUI.add('code.codereview', function(Y) { | 10 | YUI.add('lp.code.codereview', function(Y) { |
105 | 11 | 11 | ||
107 | 12 | Y.codereview = Y.namespace('code.codereview'); | 12 | var namespace = Y.namespace('lp.code.codereview'); |
108 | 13 | 13 | ||
109 | 14 | var reviewer_picker; // The "Request a review" overlay | 14 | var reviewer_picker; // The "Request a review" overlay |
110 | 15 | var lp_client; | 15 | var lp_client; |
111 | @@ -23,7 +23,7 @@ | |||
112 | 23 | /* | 23 | /* |
113 | 24 | * Connect all the links to their given actions. | 24 | * Connect all the links to their given actions. |
114 | 25 | */ | 25 | */ |
116 | 26 | Y.codereview.connect_links = function() { | 26 | namespace.connect_links = function() { |
117 | 27 | 27 | ||
118 | 28 | var link = Y.one('#request-review'); | 28 | var link = Y.one('#request-review'); |
119 | 29 | if (Y.Lang.isValue(link)) { | 29 | if (Y.Lang.isValue(link)) { |
120 | @@ -51,7 +51,9 @@ | |||
121 | 51 | 51 | ||
122 | 52 | function link_scroller(link_selector, node_selector, on_end) { | 52 | function link_scroller(link_selector, node_selector, on_end) { |
123 | 53 | var link = Y.one(link_selector); | 53 | var link = Y.one(link_selector); |
125 | 54 | if (!Y.Lang.isValue(link)) return; | 54 | if (!Y.Lang.isValue(link)) { |
126 | 55 | return; | ||
127 | 56 | } | ||
128 | 55 | 57 | ||
129 | 56 | link.addClass('js-action'); | 58 | link.addClass('js-action'); |
130 | 57 | link.on('click', function(e) { | 59 | link.on('click', function(e) { |
131 | @@ -229,7 +231,7 @@ | |||
132 | 229 | var target = Y.one('#votes-target'); | 231 | var target = Y.one('#votes-target'); |
133 | 230 | target.set('innerHTML', response.responseText); | 232 | target.set('innerHTML', response.responseText); |
134 | 231 | 233 | ||
136 | 232 | Y.codereview.connect_links(); | 234 | namespace.connect_links(); |
137 | 233 | var new_reviewer = Y.one('#review-' + username); | 235 | var new_reviewer = Y.one('#review-' + username); |
138 | 234 | var anim = Y.lazr.anim.green_flash({node: new_reviewer}); | 236 | var anim = Y.lazr.anim.green_flash({node: new_reviewer}); |
139 | 235 | anim.run(); | 237 | anim.run(); |
140 | @@ -276,6 +278,6 @@ | |||
141 | 276 | } | 278 | } |
142 | 277 | }); | 279 | }); |
143 | 278 | 280 | ||
145 | 279 | Y.codereview.NumberToggle = NumberToggle; | 281 | namespace.NumberToggle = NumberToggle; |
146 | 280 | 282 | ||
147 | 281 | }, "0.1", {"requires": ["base", "widget", "lazr.anim", "lazr.formoverlay", "lp.picker"]}); | 283 | }, "0.1", {"requires": ["base", "widget", "lazr.anim", "lazr.formoverlay", "lp.picker"]}); |
148 | 282 | 284 | ||
149 | === modified file 'lib/canonical/launchpad/javascript/code/popupdiff.js' | |||
150 | --- lib/canonical/launchpad/javascript/code/popupdiff.js 2010-02-19 17:04:52 +0000 | |||
151 | +++ lib/canonical/launchpad/javascript/code/popupdiff.js 2010-03-11 19:22:24 +0000 | |||
152 | @@ -3,11 +3,14 @@ | |||
153 | 3 | * | 3 | * |
154 | 4 | * Code for handling the popup diffs in the pretty overlays. | 4 | * Code for handling the popup diffs in the pretty overlays. |
155 | 5 | * | 5 | * |
157 | 6 | * @module popupdiff | 6 | * @module lp.code.branchmergeproposal.popupdiff |
158 | 7 | * @requires node | 7 | * @requires node |
159 | 8 | */ | 8 | */ |
160 | 9 | 9 | ||
162 | 10 | YUI.add('code.branchmergeproposal.popupdiff', function(Y) { | 10 | YUI.add('lp.code.branchmergeproposal.popupdiff', function(Y) { |
163 | 11 | |||
164 | 12 | // Grab the namespace in order to be able to expose the connect method. | ||
165 | 13 | var namespace = Y.namespace('lp.code.branchmergeproposal.popupdiff'); | ||
166 | 11 | 14 | ||
167 | 12 | // The launchpad js client used. | 15 | // The launchpad js client used. |
168 | 13 | var lp_client; | 16 | var lp_client; |
169 | @@ -90,9 +93,6 @@ | |||
170 | 90 | } | 93 | } |
171 | 91 | 94 | ||
172 | 92 | 95 | ||
173 | 93 | // Grab the namespace in order to be able to expose the connect method. | ||
174 | 94 | var popupdiff = Y.namespace('code.branchmergeproposal.popupdiff'); | ||
175 | 95 | |||
176 | 96 | /* | 96 | /* |
177 | 97 | * Link up the onclick handler for the a.diff-link in the node to the function | 97 | * Link up the onclick handler for the a.diff-link in the node to the function |
178 | 98 | * that will popup the diff in the pretty overlay. | 98 | * that will popup the diff in the pretty overlay. |
179 | @@ -113,7 +113,7 @@ | |||
180 | 113 | /* | 113 | /* |
181 | 114 | * Connect the diff links to their pretty overlay function. | 114 | * Connect the diff links to their pretty overlay function. |
182 | 115 | */ | 115 | */ |
184 | 116 | popupdiff.connect_diff_links = function() { | 116 | namespace.connect_diff_links = function() { |
185 | 117 | // IE doesn't like pretty overlays. | 117 | // IE doesn't like pretty overlays. |
186 | 118 | if (Y.UA.ie) { | 118 | if (Y.UA.ie) { |
187 | 119 | return; | 119 | return; |
188 | 120 | 120 | ||
189 | === modified file 'lib/canonical/launchpad/javascript/code/subscription.js' | |||
190 | --- lib/canonical/launchpad/javascript/code/subscription.js 2010-01-12 23:44:24 +0000 | |||
191 | +++ lib/canonical/launchpad/javascript/code/subscription.js 2010-03-11 19:22:24 +0000 | |||
192 | @@ -15,7 +15,7 @@ | |||
193 | 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
194 | 16 | */ | 16 | */ |
195 | 17 | 17 | ||
197 | 18 | YUI.add('code.branch.subscription', function(Y) { | 18 | YUI.add('lp.code.branch.subscription', function(Y) { |
198 | 19 | 19 | ||
199 | 20 | /* | 20 | /* |
200 | 21 | * Tools for working with branch subscriptions. | 21 | * Tools for working with branch subscriptions. |
201 | @@ -24,7 +24,7 @@ | |||
202 | 24 | * @namespace lp.code.branch.subscription | 24 | * @namespace lp.code.branch.subscription |
203 | 25 | */ | 25 | */ |
204 | 26 | 26 | ||
206 | 27 | var namespace = Y.namespace('code.branch.subscription'); | 27 | var namespace = Y.namespace('lp.code.branch.subscription'); |
207 | 28 | 28 | ||
208 | 29 | var display_name, // The logged in user's displayname. | 29 | var display_name, // The logged in user's displayname. |
209 | 30 | user_name, // The logged in user's username. | 30 | user_name, // The logged in user's username. |
210 | @@ -207,7 +207,7 @@ | |||
211 | 207 | Y.on( | 207 | Y.on( |
212 | 208 | 'branch:subscriber-list-stale', | 208 | 'branch:subscriber-list-stale', |
213 | 209 | this._updateSubscribersList); | 209 | this._updateSubscribersList); |
215 | 210 | }, | 210 | } |
216 | 211 | }); | 211 | }); |
217 | 212 | namespace.SubscriptionWidget = SubscriptionWidget; | 212 | namespace.SubscriptionWidget = SubscriptionWidget; |
218 | 213 | 213 | ||
219 | @@ -215,5 +215,5 @@ | |||
220 | 215 | 'event', | 215 | 'event', |
221 | 216 | 'io', | 216 | 'io', |
222 | 217 | 'lazr.formoverlay', | 217 | 'lazr.formoverlay', |
224 | 218 | 'node', | 218 | 'node' |
225 | 219 | ]}); | 219 | ]}); |
226 | 220 | 220 | ||
227 | === modified file 'lib/canonical/launchpad/windmill/jstests/launchpad_ajax.js' | |||
228 | --- lib/canonical/launchpad/windmill/jstests/launchpad_ajax.js 2010-02-16 16:29:36 +0000 | |||
229 | +++ lib/canonical/launchpad/windmill/jstests/launchpad_ajax.js 2010-03-11 19:22:24 +0000 | |||
230 | @@ -344,7 +344,7 @@ | |||
231 | 344 | 344 | ||
232 | 345 | // Now make sure patch() on a field resource works when we | 345 | // Now make sure patch() on a field resource works when we |
233 | 346 | // request a JSON representation in return. | 346 | // request a JSON representation in return. |
235 | 347 | var field_uri = LP.client.get_field_uri('~salgado', 'display_name'); | 347 | field_uri = LP.client.get_field_uri('~salgado', 'display_name'); |
236 | 348 | client.patch(field_uri, 'Guilherme Salgado', | 348 | client.patch(field_uri, 'Guilherme Salgado', |
237 | 349 | {on: test.create_yui_sync_on()}); | 349 | {on: test.create_yui_sync_on()}); |
238 | 350 | }, | 350 | }, |
239 | @@ -354,7 +354,7 @@ | |||
240 | 354 | jum.assertEquals('success', test.result.callback); | 354 | jum.assertEquals('success', test.result.callback); |
241 | 355 | var salgado_name_html = test.result.args[0]; | 355 | var salgado_name_html = test.result.args[0]; |
242 | 356 | jum.assertEquals(salgado_name_html, "Guilherme Salgado"); | 356 | jum.assertEquals(salgado_name_html, "Guilherme Salgado"); |
244 | 357 | }, | 357 | } |
245 | 358 | ]); | 358 | ]); |
246 | 359 | 359 | ||
247 | 360 | //Test that modifying an entry and then calling lp_save() saves the | 360 | //Test that modifying an entry and then calling lp_save() saves the |
248 | 361 | 361 | ||
249 | === modified file 'lib/lp/bugs/templates/bugtask-index.pt' | |||
250 | --- lib/lp/bugs/templates/bugtask-index.pt 2010-01-22 03:16:44 +0000 | |||
251 | +++ lib/lp/bugs/templates/bugtask-index.pt 2010-03-11 19:22:24 +0000 | |||
252 | @@ -38,10 +38,10 @@ | |||
253 | 38 | </tal:devmode> | 38 | </tal:devmode> |
254 | 39 | <script type="text/javascript"> | 39 | <script type="text/javascript"> |
255 | 40 | LPS.use('base', 'node', 'oop', 'event', 'bugs.bugtask_index', | 40 | LPS.use('base', 'node', 'oop', 'event', 'bugs.bugtask_index', |
257 | 41 | 'code.branchmergeproposal.popupdiff', function(Y) { | 41 | 'lp.code.branchmergeproposal.popupdiff', function(Y) { |
258 | 42 | Y.bugs.setup_bugtask_index(); | 42 | Y.bugs.setup_bugtask_index(); |
259 | 43 | Y.on('load', function(e) { | 43 | Y.on('load', function(e) { |
261 | 44 | Y.code.branchmergeproposal.popupdiff.connect_diff_links(); | 44 | Y.lp.code.branchmergeproposal.popupdiff.connect_diff_links(); |
262 | 45 | }, window); | 45 | }, window); |
263 | 46 | }); | 46 | }); |
264 | 47 | </script> | 47 | </script> |
265 | 48 | 48 | ||
266 | === modified file 'lib/lp/code/templates/branch-index.pt' | |||
267 | --- lib/lp/code/templates/branch-index.pt 2010-01-15 20:22:33 +0000 | |||
268 | +++ lib/lp/code/templates/branch-index.pt 2010-03-11 19:22:24 +0000 | |||
269 | @@ -44,18 +44,18 @@ | |||
270 | 44 | <script type="text/javascript" | 44 | <script type="text/javascript" |
271 | 45 | tal:content="string: | 45 | tal:content="string: |
272 | 46 | LPS.use('node', 'event', 'widget', 'plugin', 'overlay', | 46 | LPS.use('node', 'event', 'widget', 'plugin', 'overlay', |
276 | 47 | 'lazr.choiceedit', 'code.branchstatus', | 47 | 'lazr.choiceedit', 'lp.code.branchstatus', |
277 | 48 | 'code.branchmergeproposal.popupdiff', | 48 | 'lp.code.branchmergeproposal.popupdiff', |
278 | 49 | 'code.branch.subscription', function(Y) { | 49 | 'lp.code.branch.subscription', function(Y) { |
279 | 50 | 50 | ||
280 | 51 | Y.on('load', function(e) { | 51 | Y.on('load', function(e) { |
282 | 52 | var subscription_portlet = new Y.code.branch.subscription.SubscriptionWidget({ | 52 | var subscription_portlet = new Y.lp.code.branch.subscription.SubscriptionWidget({ |
283 | 53 | contentBox: '#portlet-subscribers' | 53 | contentBox: '#portlet-subscribers' |
284 | 54 | }); | 54 | }); |
285 | 55 | subscription_portlet.render(); | 55 | subscription_portlet.render(); |
286 | 56 | 56 | ||
289 | 57 | Y.branchstatus.connect_status(${view/status_config}); | 57 | Y.lp.code.branchstatus.connect_status(${view/status_config}); |
290 | 58 | Y.code.branchmergeproposal.popupdiff.connect_diff_links(); | 58 | Y.lp.code.branchmergeproposal.popupdiff.connect_diff_links(); |
291 | 59 | }, | 59 | }, |
292 | 60 | window); | 60 | window); |
293 | 61 | }); | 61 | }); |
294 | 62 | 62 | ||
295 | === modified file 'lib/lp/code/templates/branch-related-bugs-specs.pt' | |||
296 | --- lib/lp/code/templates/branch-related-bugs-specs.pt 2009-12-03 18:33:22 +0000 | |||
297 | +++ lib/lp/code/templates/branch-related-bugs-specs.pt 2010-03-11 19:22:24 +0000 | |||
298 | @@ -42,14 +42,14 @@ | |||
299 | 42 | string:<script id='branchlink-script' type='text/javascript'>" /> | 42 | string:<script id='branchlink-script' type='text/javascript'>" /> |
300 | 43 | <!-- | 43 | <!-- |
301 | 44 | 44 | ||
303 | 45 | LPS.use('io-base', 'code.branchlinks', function(Y) { | 45 | LPS.use('io-base', 'lp.code.branchlinks', function(Y) { |
304 | 46 | 46 | ||
305 | 47 | if(Y.UA.ie) { | 47 | if(Y.UA.ie) { |
306 | 48 | return; | 48 | return; |
307 | 49 | } | 49 | } |
308 | 50 | 50 | ||
309 | 51 | Y.on('domready', function() { | 51 | Y.on('domready', function() { |
311 | 52 | Y.code.branchlinks.connect_branchlinks(); | 52 | Y.lp.code.branchlinks.connect_branchlinks(); |
312 | 53 | }); | 53 | }); |
313 | 54 | 54 | ||
314 | 55 | }); | 55 | }); |
315 | 56 | 56 | ||
316 | === modified file 'lib/lp/code/templates/branchmergeproposal-index.pt' | |||
317 | --- lib/lp/code/templates/branchmergeproposal-index.pt 2010-02-23 09:31:13 +0000 | |||
318 | +++ lib/lp/code/templates/branchmergeproposal-index.pt 2010-03-11 19:22:24 +0000 | |||
319 | @@ -228,8 +228,8 @@ | |||
320 | 228 | string:<script id='codereview-script' type='text/javascript'>" /> | 228 | string:<script id='codereview-script' type='text/javascript'>" /> |
321 | 229 | conf = <tal:status-config replace="view/status_config" /> | 229 | conf = <tal:status-config replace="view/status_config" /> |
322 | 230 | <!-- | 230 | <!-- |
325 | 231 | LPS.use('io-base', 'code.codereview', 'code.branchmergeproposal', 'lp.comment', | 231 | LPS.use('io-base', 'lp.code.codereview', 'lp.code.branchmergeproposal', |
326 | 232 | function(Y) { | 232 | 'lp.comment', function(Y) { |
327 | 233 | 233 | ||
328 | 234 | Y.on('load', function() { | 234 | Y.on('load', function() { |
329 | 235 | var logged_in = LP.client.links['me'] !== undefined; | 235 | var logged_in = LP.client.links['me'] !== undefined; |
330 | @@ -242,10 +242,10 @@ | |||
331 | 242 | return; | 242 | return; |
332 | 243 | } | 243 | } |
333 | 244 | 244 | ||
335 | 245 | Y.code.branchmergeproposal.connect_status(conf); | 245 | Y.lp.code.branchmergeproposal.connect_status(conf); |
336 | 246 | } | 246 | } |
339 | 247 | Y.code.codereview.connect_links(); | 247 | Y.lp.code.codereview.connect_links(); |
340 | 248 | (new Y.codereview.NumberToggle()).render(); | 248 | (new Y.lp.code.codereview.NumberToggle()).render(); |
341 | 249 | }, window); | 249 | }, window); |
342 | 250 | }); | 250 | }); |
343 | 251 | --> | 251 | --> |
Hi there-
This branch just fixes bug 513270. Basically, the code Javascript doesn't
conform to our new(er) Javascript standards. This branch is actually a split
up version of what I wanted to do with the javascript, but the revisions past
this will conflict with thumper's work that I reviewed yesterday, and I don't
want to make the major changes (from the latter revisions) so close to release
time.
Cheers,
Paul