Revision 23a4a31b ui/templates/machines_icon.html
b/ui/templates/machines_icon.html | ||
---|---|---|
171 | 171 |
init_action_indicator_handlers('icon'); |
172 | 172 |
|
173 | 173 |
// handle connect machine image states |
174 |
$("div.connect-arrow, div.running .machine .logo").live('mouseenter',
|
|
174 |
$("div.connect-arrow, div.running .machine .logo").live('mouseover',
|
|
175 | 175 |
function() { |
176 |
if ($(this).parent().parent().find('.status').text() != STATUSES['ACTIVE']) { return }; |
|
176 | 177 |
set_machine_os_image($(this).parent().parent(), "icon", "hover", undefined, 1); |
177 | 178 |
}); |
178 | 179 |
|
179 | 180 |
$("div.connect-arrow, div.running .machine .logo").live('mouseleave', |
180 | 181 |
function() { |
182 |
if ($(this).parent().parent().find('.status').text() != STATUSES['ACTIVE']) { return }; |
|
181 | 183 |
set_machine_os_image($(this).parent().parent(), "icon", "hover", undefined, 1, "hover"); |
184 |
// mouseup outside the element is not fired |
|
185 |
set_machine_os_image($(this).parent().parent(), "icon", "hover", undefined, 1, "click"); |
|
182 | 186 |
}); |
183 | 187 |
|
184 | 188 |
$("div.connect-arrow, div.running .machine .logo").live('mousedown', |
185 |
function() { |
|
189 |
function() { |
|
190 |
if ($(this).parent().parent().find(".connect-arrow:visible").length == 0) { return }; |
|
186 | 191 |
set_machine_os_image($(this).parent().parent(), "icon", "click", undefined, 1); |
187 | 192 |
}); |
188 | 193 |
|
189 | 194 |
$("div.connect-arrow, div.running .machine .logo").live('mouseup', |
190 | 195 |
function() { |
196 |
if ($(this).parent().parent().find(".connect-arrow:visible").length == 0) { return }; |
|
191 | 197 |
set_machine_os_image($(this).parent().parent(), "icon", "click", undefined, 1, "click"); |
192 | 198 |
}); |
193 | 199 |
|
Also available in: Unified diff