summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--web-ui/app/js/foundation/off_canvas.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/web-ui/app/js/foundation/off_canvas.js b/web-ui/app/js/foundation/off_canvas.js
index f5454062..a7a39bba 100644
--- a/web-ui/app/js/foundation/off_canvas.js
+++ b/web-ui/app/js/foundation/off_canvas.js
@@ -22,16 +22,16 @@ define(['flight/lib/component', 'page/events'], function (defineComponent, event
this.closeSlider = function (ev){
ev.preventDefault();
$('.exit-off-canvas').click();
- if ($('#custom-tag-list').hasClass('expanded')) {
- $('#custom-tag-list').removeClass('expanded');
- } else {
- $('#custom-tag-list').addClass('expanded');
- }
+ this.toggleTagsVisibility();
};
this.toggleSlideContent = function (ev) {
ev.preventDefault();
- $('.left-off-canvas-toggle').click();
+ $('.left-off-canvas-toggle').click();
+ this.toggleTagsVisibility();
+ };
+
+ this.toggleTagsVisibility = function () {
if ($('#custom-tag-list').hasClass('expanded')) {
$('#custom-tag-list').removeClass('expanded');
} else {