Преглед изворни кода

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
 		});