|
@@ -17,13 +17,15 @@ $(document).ready(function () {
|
|
}
|
|
}
|
|
};
|
|
};
|
|
|
|
|
|
- $('#switcher').on('click.collapse', toggleSwitcher);
|
|
|
|
|
|
+ $('#switcher').on('click', toggleSwitcher);
|
|
|
|
+
|
|
|
|
+ $('#switcher button').click(function () {
|
|
|
|
+ $('#switcher').off('click', toggleSwitcher);
|
|
|
|
+
|
|
|
|
+ if (this.id == 'switcher-default') {
|
|
|
|
+ $('#switcher').on('click', toggleSwitcher);
|
|
|
|
+ }
|
|
|
|
|
|
- $('#switcher-narrow, #switcher-large').click(function () {
|
|
|
|
- $('#switcher').off('click.collapse');
|
|
|
|
- });
|
|
|
|
- $('#switcher-default').click(function () {
|
|
|
|
- $('#switcher').on('click.collapse', toggleSwitcher);
|
|
|
|
});
|
|
});
|
|
});
|
|
});
|
|
|
|
|