Merge lp:~rvb/maas/all-js-select into lp:~maas-committers/maas/trunk
Proposed by
Raphaël Badin
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Raphaël Badin | ||||
Approved revision: | no longer in the source branch. | ||||
Merged at revision: | 1509 | ||||
Proposed branch: | lp:~rvb/maas/all-js-select | ||||
Merge into: | lp:~maas-committers/maas/trunk | ||||
Prerequisite: | lp:~rvb/maas/api-commission | ||||
Diff against target: |
46 lines (+21/-2) 2 files modified
src/maasserver/templates/maasserver/node_list.html (+19/-0) src/maasserver/templates/maasserver/nodes_listing.html (+2/-2) |
||||
To merge this branch: | bzr merge lp:~rvb/maas/all-js-select | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Gavin Panella (community) | Approve | ||
Review via email: mp+167019@code.launchpad.net |
Commit message
Add a way to select/deselect all the nodes on the node listing page with just one click.
Description of the change
As discussed this morning, there is no test for this because putting this into a YUI widget does not make sense (it's too heavyweight) and we currently don't have a clean way to test this (it would require a level of unit-testing capability we currently don't have).
I'm currently researching into how we can test this: the poor man's solution is to check that the selectors in the JS code match the HTML code. I /think/ using Django 1.4 Selenium integration would be much better but I need to make sure it's possible.
To post a comment you must log in.
I think #2 needs consideration.
[1]
+ Y.one(' #all_system_ id_control' ).on('click' , function(e) {
I think it would make sense to respond to 'change' here instead of
'click'.
[2]
+ <th><input type="checkbox" id="all_ system_ id_control" /></th>
What happens if this is checked, then someone deselects one of the row
checkboxes? This will stay checked. That's counter to the behaviour
I'm used to for these things.