Pārlūkot izejas kodu

Fixed issues with close buttons

Close buttons no longer overlap area needed to open the settings and
users panels
Nathaniel van Diepen 12 gadi atpakaļ
vecāks
revīzija
70d72bc784
1 mainītis faili ar 4 papildinājumiem un 1 dzēšanām
  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
 		});