if($(listID).is(":visible")) {
$(listID).hide();
$(listID+"-wrapper").show();
- alert($(listID+"-wrapper").attr("id"));
}
else {
$(listID).show();
$(function() {
$.ajaxSetup({cache: false});
- collapseHeight();
+ //collapseHeight();
/* setup tooltips *//*
$("a,.tt").each(function(){
if(livetime) {
clearTimeout(livetime);
}
- livetime = setTimeout(liveUpdate, 10000);
+ livetime = setTimeout(liveUpdate, 5000);
return;
}
if(livetime != null)
$('body').css('cursor', 'auto');
}
/* autocomplete @nicknames */
- $(".comment-edit-form textarea").contact_autocomplete(baseurl+"/acl");
+ $(".comment-edit-form textarea").editor_autocomplete(baseurl+"/acl");
// setup videos, since VideoJS won't take care of any loaded via AJAX
if(typeof videojs != 'undefined') videojs.autoSetup();
elemName = elems + ' ' + elemName;
}
$(elemName).each(function() {
- if($(this).height() > 350) {
- $('html').height($('html').height());
- $(this).divgrow({ initialHeight: 300, showBrackets: false, speed: 0 });
- $(this).addClass('divmore');
- $('html').height('auto');
- }
+ $('html').height($('html').height());
+ $(this).readmore({maxheight:350 , moreLink:'<a href="#" class="showmore">+ Show more</a>', lessLink:'<a href="#" class="showmore">+ Show less</a>'});
+ $(this).addClass('divmore');
+ $('html').height('auto');
});
}