Browse Source

Minor tweaks

Clicking on the main content areas forces any open pane or tab area to
hide.
Clicking on a tab does not propagate.
Nathaniel van Diepen 12 years ago
parent
commit
7bbfc91c90
1 changed files with 6 additions and 1 deletions
  1. 6 1
      www/js/omnomirc.js

+ 6 - 1
www/js/omnomirc.js

@@ -69,9 +69,11 @@
 			if(typeof id !== 'undefined'){
 				return $('<span>')
 					.addClass('tab')
-					.text(tabs[id].name).click(function(){
+					.text(tabs[id].name)
+					.click(function(){
 						if($(this).data('id')!=selectedTab){
 							$o.selectTab($(this).data('id'));
+							return false;
 						}
 					})
 					.append(
@@ -143,6 +145,9 @@
 			},
 			timeout: 1000
 		});
+		$('#content').click(function(){
+			$('#settings, #users, #head').removeClass('hovered').removeClass('open');
+		});
 		$h.hoverIntent({
 			over: function(){
 				setTimeout(function(){