Просмотр исходного кода

Fixed issues with close buttons

Close buttons no longer overlap area needed to open the settings and
users panels
Nathaniel van Diepen 12 лет назад
Родитель
Сommit
70d72bc784
1 измененных файлов с 4 добавлено и 1 удалено
  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
 		});