fix mobile photo uploads; better theme control; frost improvements

This commit is contained in:
Zach Prezkuta 2012-11-06 08:43:19 -07:00
parent 776552226b
commit 999c3439e6
32 changed files with 605 additions and 278 deletions

View file

@ -38,6 +38,8 @@
msie = $j.browser.msie ;
collapseHeight();
/* setup tooltips *//*
$j("a,.tt").each(function(){
var e = $j(this);
@ -333,20 +335,7 @@
});
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();
}
collapseHeight();
// reset vars for inserting individual items
@ -385,14 +374,18 @@
});
}
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 collapseHeight(elems) {
var elemName = '.wall-item-body:not(.divmore)';
if(typeof elems != 'undefined') {
elemName = elems + ' ' + elemName;
}
$j(elemName).each(function() {
if($j(this).height() > 350) {
$j('html').height($j('html').height());
$j(this).divgrow({ initialHeight: 300, showBrackets: false, speed: 0 });
$j(this).addClass('divmore');
$j('html').height('auto');
}
});
}
@ -542,6 +535,7 @@
else {
$j("#collapsed-comments-" + id).show();
$j("#hide-comments-" + id).html(window.showFewer);
collapseHeight("#collapsed-comments-" + id);
}
}