Merge lp:~sinzui/launchpad/daily-build-form into lp:launchpad
| Status: | Merged | ||||
|---|---|---|---|---|---|
| Merged at revision: | 15253 | ||||
| Proposed branch: | lp:~sinzui/launchpad/daily-build-form | ||||
| Merge into: | lp:launchpad | ||||
| Diff against target: |
33 lines (+12/-1) 2 files modified
lib/lp/code/javascript/requestbuild_overlay.js (+4/-1) lib/lp/code/javascript/tests/test_requestbuild_overlay.js (+8/-0) |
||||
| To merge this branch: | bzr merge lp:~sinzui/launchpad/daily-build-form | ||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Richard Harding (community) | code | 2012-05-15 | Approve on 2012-05-15 |
|
Review via email:
|
|||
Commit Message
Hide the daily build form if it exists.
Description of the Change
Pre-implementation: no one
When visiting a recipe page such as
https:/
see an error:
Uncaught TypeError: Cannot call method 'addClass' of null
The browser just executed.
Y.one(
The request-
available. This regression was introduced when I replaced the noscript
with a call to hide the form.
-------
RULES
* Do not call addClass() if the form was not rendered.
QA
* Visit https:/
* Verify there is not a TypeError when the page loads
LINT
lib/
lib/
TEST
./bin/test -vvc --layer=YUITest lp.code
IMPLEMENTATION
Check that there is a node befor adding a class.
lib/
lib/

Thanks, and appreciate the test to go with it there.