integ/js/iri.js
changeset 1 4aec3f00ea87
child 2 05fdc9616ba0
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/integ/js/iri.js	Wed Apr 03 16:19:25 2013 +0200
@@ -0,0 +1,32 @@
+$(function(){
+
+
+
+$(window).bind('resize', function(){
+	setSidebarContentHeight();
+});
+setSidebarContentHeight();
+function setSidebarContentHeight(){
+	var newHeight = $(window).height() - $('header').height() - $('footer').height();
+	$(".sidebar .content").css('height', newHeight);
+}
+
+$(".sidebar .content").mCustomScrollbar({
+	advanced:{
+	    updateOnContentResize: true
+	}
+});
+
+$('a.more').bind('click', function(e){
+	e.preventDefault();
+	var target = $(this).attr('href');
+	if($(this).hasClass('less')){
+		$(target).hide();
+		$(this).removeClass('less')
+	}else{
+		$(target).show();
+		$(this).addClass('less')
+	}	
+});// a.more
+
+});
\ No newline at end of file