|
@@ -1,7 +1,7 @@
|
|
|
$(document).ready(function () {
|
|
|
'use strict';
|
|
|
|
|
|
- $('#switcher h3').hover(function() {
|
|
|
+ $('#switcher ').hover(function() {
|
|
|
$(this).addClass('hover');
|
|
|
}, function() {
|
|
|
$(this).removeClass('hover');
|
|
@@ -12,7 +12,9 @@ $(document).ready(function () {
|
|
|
'use strict';
|
|
|
|
|
|
$('#switcher').click(function (event) {
|
|
|
- $('#switcher button').toggleClass('hidden');
|
|
|
+ if (!$(event.target).is('button')) {
|
|
|
+ $('#switcher button').toggleClass('hidden');
|
|
|
+ }
|
|
|
});
|
|
|
});
|
|
|
|
|
@@ -29,7 +31,6 @@ $(document).ready(function () {
|
|
|
|
|
|
$('#switcher button').removeClass('selected');
|
|
|
$(event.target).addClass('selected');
|
|
|
- event.stopPropagation();
|
|
|
}
|
|
|
});
|
|
|
-});
|
|
|
+});
|