Revision 20a29096 snf-astakos-app/astakos/im/static/im/cloudbar/cloudbar.js
b/snf-astakos-app/astakos/im/static/im/cloudbar/cloudbar.js | ||
---|---|---|
111 | 111 |
var firstlink = profile.find("ul li:first-child a").attr("href"); |
112 | 112 |
profile.find(".user > a").attr("href", firstlink); |
113 | 113 |
|
114 |
|
|
114 | 115 |
// ie fix |
115 |
user.hover(function(){ |
|
116 |
equalWidths ( $('.cloudbar .profile ul'), $('.cloudbar .profile')); |
|
117 |
$(this).addClass("hover")}, function(){$(this).removeClass("hover")}); |
|
116 |
user.hover( |
|
117 |
function(){ |
|
118 |
equalWidths ( $('.cloudbar .profile ul'), $('.cloudbar .profile')); |
|
119 |
$(this).addClass("hover")}, |
|
120 |
function(){ |
|
121 |
$(this).removeClass("hover") |
|
122 |
} |
|
123 |
); |
|
118 | 124 |
|
119 |
$('.cloudbar .profile .full>a').live('click', function(e){ |
|
120 |
|
|
121 |
e.stopPropagation(); |
|
122 |
e.preventDefault(); |
|
123 |
}); |
|
124 |
|
|
125 |
|
|
126 |
/* |
|
127 |
$('.cloudbar .profile .full>a').live('click', function(e){ |
|
128 |
|
|
129 |
e.stopPropagation(); |
|
130 |
e.preventDefault(); |
|
125 |
equalWidths ( $('.cloudbar .profile ul'), $('.cloudbar .profile')); |
|
126 |
|
|
127 |
$('.cloudbar .profile .full>a').live('focus', function(e){ |
|
128 |
console.info('i just focused'); |
|
129 |
e.preventDefault(); |
|
131 | 130 |
equalWidths ( $('.cloudbar .profile ul'), $('.cloudbar .profile')); |
132 |
$(this).siblings('ul').toggle(); |
|
133 |
$(this).toggleClass('open'); |
|
134 |
|
|
135 |
}); |
|
136 |
*/ |
|
131 |
$(this).siblings('ul').show(); |
|
132 |
$(this).addClass('open'); |
|
133 |
}) ; |
|
137 | 134 |
|
135 |
$('.cloudbar .profile .full>a').live('click', function(e){ |
|
136 |
e.preventDefault(); |
|
137 |
}); |
|
138 |
|
|
139 |
$('.cloudbar .profile ul li:last a').live('focusout', function(e){ |
|
140 |
console.info('i just focused out in style'); |
|
141 |
$(this).parents('ul').attr('style', ''); |
|
142 |
$(this).parents('ul').removeAttr('style'); |
|
143 |
equalWidths ( $('.cloudbar .profile ul'), $('.cloudbar .profile')); |
|
144 |
$(this).parents('ul').siblings('a').removeClass('open'); |
|
145 |
}); |
|
138 | 146 |
|
139 | 147 |
}); |
140 | 148 |
|
Also available in: Unified diff