Revision 5e40ba16 ui/templates/machines_list.html
b/ui/templates/machines_list.html | ||
---|---|---|
92 | 92 |
init_action_indicator_handlers('list'); |
93 | 93 |
|
94 | 94 |
// select/deselect all from checkbox widget of table headers |
95 |
if ($.browser.msie) { |
|
96 |
$("#machinesview .list table thead tr th.selection input:checkbox").click( function() { |
|
97 |
if ( $(this).is(":checked") ) { |
|
98 |
$(":checkbox").attr("checked", true); |
|
99 |
} |
|
100 |
else { |
|
101 |
$(":checkbox").attr("checked", false); |
|
102 |
} |
|
103 |
update_listview_actions(); |
|
104 |
}); |
|
105 |
} else { |
|
106 |
$("#machinesview .list table thead tr th.selection :checkbox").live('change', function() { |
|
107 |
alert('change'); |
|
108 |
if ( $(this).is(":checked") ) { |
|
109 |
$(":checkbox").attr("checked", true); |
|
110 |
} |
|
111 |
else { |
|
112 |
$(":checkbox").attr("checked", false); |
|
113 |
} |
|
114 |
update_listview_actions(); |
|
115 |
return false; |
|
116 |
}); |
|
117 |
} |
|
95 |
$("#machinesview .list table thead tr th.selection input:checkbox").click( function() { |
|
96 |
if ( $(this).is(":checked") ) { |
|
97 |
$(":checkbox").attr("checked", true); |
|
98 |
} |
|
99 |
else { |
|
100 |
$(":checkbox").attr("checked", false); |
|
101 |
} |
|
102 |
update_listview_actions(); |
|
103 |
}); |
|
118 | 104 |
|
119 | 105 |
/* Drop down selector is commented out for v0.5 |
120 | 106 |
// select all from drop down menu |
... | ... | |
164 | 150 |
}; |
165 | 151 |
|
166 | 152 |
// on checkbox click, update the actions |
167 |
$("#machinesview .list tbody input[type='checkbox']").live('change', function() {
|
|
153 |
$("#machinesview .list tbody input[type='checkbox']").live('click', function() {
|
|
168 | 154 |
update_listview_actions(); |
169 | 155 |
pending_actions = []; |
170 | 156 |
$(".selected").removeClass('selected'); |
171 |
return false; |
|
172 | 157 |
}); |
173 | 158 |
|
174 | 159 |
// destroy action |
Also available in: Unified diff