|
@@ -11,14 +11,14 @@ $(document).ready(function () {
|
|
$(document).ready(function () {
|
|
$(document).ready(function () {
|
|
'use strict';
|
|
'use strict';
|
|
|
|
|
|
- $('#switcher').click(function(event) {
|
|
|
|
|
|
+ $('#switcher').on('click.collapse', function(event) {
|
|
if (!$(event.target).is('button')) {
|
|
if (!$(event.target).is('button')) {
|
|
$('#switcher button').toggleClass('hidden');
|
|
$('#switcher button').toggleClass('hidden');
|
|
}
|
|
}
|
|
});
|
|
});
|
|
|
|
|
|
$('#switcher-narrow, #switcher-large').click(function () {
|
|
$('#switcher-narrow, #switcher-large').click(function () {
|
|
- $('#switcher').off('click');
|
|
|
|
|
|
+ $('#switcher').off('click.collapse');
|
|
});
|
|
});
|
|
});
|
|
});
|
|
|
|
|