Revision 3f3bb937 snf-cyclades-app/synnefo/ui/new_ui/ui/javascripts/common.js
b/snf-cyclades-app/synnefo/ui/new_ui/ui/javascripts/common.js | ||
---|---|---|
67 | 67 |
|
68 | 68 |
ui.entitiesActionsInit = function(){ |
69 | 69 |
|
70 |
// TODO: refactor this |
|
71 |
$('.entities a').click(function(){ |
|
72 |
if ($(this).attr('data-reveal-id')) { |
|
73 |
$('.entities li .more').hide(); |
|
74 |
} |
|
75 |
}) |
|
76 |
|
|
70 | 77 |
if ($('.entities .items-list >li').length == 1) { |
71 | 78 |
$('.overlay-wrapper').addClass('no-vm'); |
72 | 79 |
} |
... | ... | |
77 | 84 |
$('.entities li .img').mouseenter(function(e) { |
78 | 85 |
if ($(this).closest('.container').siblings('.more').length>0) { |
79 | 86 |
$(this).closest('.container').stop(true, true).hide(); |
80 |
$(this).closest('.container').siblings('.more').stop(true, true).fadeIn(500);//stop().slideToggle(600);
|
|
87 |
$(this).closest('.container').siblings('.more').stop(true, true).fadeIn(600);//stop().slideToggle(600);
|
|
81 | 88 |
} |
82 | 89 |
}); |
83 | 90 |
$('.entities li .more').mouseleave(function(e) { |
Also available in: Unified diff