1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-02 01:21:21 +03:00

Add attributes to select all and list items

This commit is contained in:
Joe Fiorini 2015-08-10 15:29:20 -04:00
parent ac232fcff0
commit 68303ee644
2 changed files with 3 additions and 2 deletions

View File

@ -3,7 +3,8 @@
type="checkbox" type="checkbox"
ng-disabled="itemsLength === 0" ng-disabled="itemsLength === 0"
ng-model="isSelected" ng-model="isSelected"
ng-change="doSelectAll()"> ng-change="doSelectAll()"
data-multi-select-select-all>
{{label}} {{label}}
</label> </label>
<button <button

View File

@ -30,7 +30,7 @@ export default
item: '=item' item: '=item'
}, },
require: '^multiSelectList', require: '^multiSelectList',
template: '<input type="checkbox" ng-model="isSelected">', template: '<input type="checkbox" data-multi-select-list-item ng-model="isSelected">',
link: function(scope, element, attrs, multiSelectList) { link: function(scope, element, attrs, multiSelectList) {
scope.isSelected = false; scope.isSelected = false;