فهرست منبع

Fixed issues with close buttons

Close buttons no longer overlap area needed to open the settings and
users panels
Nathaniel van Diepen 12 سال پیش
والد
کامیت
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
 		});