Browse Source

Fixed issues with close buttons

Close buttons no longer overlap area needed to open the settings and
users panels
Nathaniel van Diepen 12 years ago
parent
commit
70d72bc784
1 changed files with 4 additions and 1 deletions
  1. 4 1
      www/js/omnomirc.js

+ 4 - 1
www/js/omnomirc.js

@@ -132,17 +132,20 @@
 		});
 		$('#settings, #users').click(function(){
 			$(this).addClass('open');
+			$(this).children('.close-button').show();
 		}).hover(function(){
 			$(this).addClass('hovered');
 		},function(){
 			$(this).removeClass('hovered');
 		}).children('.close-button').click(function(){
 			$(this).parent().removeClass('open');
+			$(this).hide();
 			return false;
-		});
+		}).hide();
 		$('#users').hoverIntent({
 			out: function(){
 				$(this).removeClass('open');
+				$(this).children('.close-button').hide();
 			},
 			timeout: 1000
 		});