}
/* autocomplete @nicknames */
$j(".comment-edit-form textarea").contact_autocomplete(baseurl+"/acl");
+
+ var bimgs = $j(".wall-item-body > img").not(function() { return this.complete; });
+ var bimgcount = bimgs.length;
+
+ if (bimgcount) {
+ bimgs.load(function() {
+ bimgcount--;
+ if (! bimgcount) {
+ collapseHeight();
+
+ }
+ });
+ } else {
+ collapseHeight();
+ }
+
+ });
+ }
+
+ function collapseHeight() {
+ $j(".wall-item-body").each(function() {
+ if($j(this).height() > 310) {
+ if(! $j(this).hasClass('divmore')) {
+ $j(this).divgrow({ initialHeight: 300, showBrackets: false, speed: 0 });
+ $j(this).addClass('divmore');
+ }
+ }
});
}
function previewTheme(elm) {
theme = $j(elm).val();
$j.getJSON('pretheme?f=&theme=' + theme,function(data) {
- $j('#theme-preview').html('<div id="theme-desc">' + data.desc + '</div><div id="theme-version">' + data.version + '</div><div id="theme-credits">' + data.credits + '</div><a href="' + data.img + '"><img src="' + data.img + '" width="320" height="240" alt="' + theme + '" /></a>');
+ $j('#theme-preview').html('<div id="theme-desc">' + data.desc + '</div><div id="theme-version">' + data.version + '</div><div id="theme-credits">' + data.credits + '</div>');
});
}