|
@@ -11,11 +11,13 @@ $(document).ready(function () {
|
|
$(document).ready(function () {
|
|
$(document).ready(function () {
|
|
'use strict';
|
|
'use strict';
|
|
|
|
|
|
- $('#switcher').on('click.collapse', function(event) {
|
|
|
|
|
|
+ var toggleSwitcher = function(event) {
|
|
if (!$(event.target).is('button')) {
|
|
if (!$(event.target).is('button')) {
|
|
$('#switcher button').toggleClass('hidden');
|
|
$('#switcher button').toggleClass('hidden');
|
|
}
|
|
}
|
|
- });
|
|
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ $('#switcher').on('click.collapse', toggleSwitcher);
|
|
|
|
|
|
$('#switcher-narrow, #switcher-large').click(function () {
|
|
$('#switcher-narrow, #switcher-large').click(function () {
|
|
$('#switcher').off('click.collapse');
|
|
$('#switcher').off('click.collapse');
|
|
@@ -38,3 +40,4 @@ $(document).ready(function () {
|
|
}
|
|
}
|
|
});
|
|
});
|
|
});
|
|
});
|
|
|
|
+
|