Revision badb9324 snf-astakos-app/astakos/im/static/im/cloudbar/cloudbar.js
b/snf-astakos-app/astakos/im/static/im/cloudbar/cloudbar.js | ||
---|---|---|
1 |
function equalWidths ( secondEl, firstEl) { |
|
2 |
secondEl.css('width',firstEl.outerWidth() ); |
|
3 |
} |
|
4 |
|
|
5 |
|
|
6 |
|
|
1 | 7 |
$(document).ready(function(){ |
2 | 8 |
|
3 | 9 |
/* |
... | ... | |
110 | 116 |
});*/ |
111 | 117 |
$('.cloudbar .profile .full>a').live('click', function(e){ |
112 | 118 |
e.preventDefault(); |
113 |
$('.cloudbar .profile ul').css('width',$('.profile').outerWidth() );
|
|
119 |
equalWidths ( $('.cloudbar .profile ul'), $('.cloudbar .profile'));
|
|
114 | 120 |
$(this).siblings('ul').toggle(); |
115 | 121 |
$(this).toggleClass('open'); |
116 | 122 |
|
117 | 123 |
}); |
118 |
|
|
119 |
|
|
120 | 124 |
|
121 | 125 |
|
122 |
|
|
123 |
|
|
126 |
}); |
|
127 |
|
|
128 |
$(window).resize(function() { |
|
129 |
equalWidths ( $('.cloudbar .profile ul'), $('.cloudbar .profile')); |
|
124 | 130 |
}); |
Also available in: Unified diff