diff options
author | Gabriel Albo <gabriel@albo.com.br> | 2015-03-03 18:25:26 -0300 |
---|---|---|
committer | Gabriel Albo <gabriel@albo.com.br> | 2015-03-03 18:25:33 -0300 |
commit | 7075c0c441e92de7dafcc21fbedd825070bfccd6 (patch) | |
tree | dcfb570429ab114a6d1e6d911e7e21e1e94d72da /web-ui/app | |
parent | a687c2b71a0ab336076501632067db67d896b4a9 (diff) |
Fixing tag visibility toggle
Diffstat (limited to 'web-ui/app')
-rw-r--r-- | web-ui/app/index.html | 2 | ||||
-rw-r--r-- | web-ui/app/js/foundation/off_canvas.js | 14 |
2 files changed, 13 insertions, 3 deletions
diff --git a/web-ui/app/index.html b/web-ui/app/index.html index 8804ac9c..efa9ffe3 100644 --- a/web-ui/app/index.html +++ b/web-ui/app/index.html @@ -83,7 +83,7 @@ <section id="right-pane" class="small-7 medium-7 large-7 columns"> </section> - + <a class="exit-off-canvas"></a> </div> </div> diff --git a/web-ui/app/js/foundation/off_canvas.js b/web-ui/app/js/foundation/off_canvas.js index 8fd2f218..f5454062 100644 --- a/web-ui/app/js/foundation/off_canvas.js +++ b/web-ui/app/js/foundation/off_canvas.js @@ -19,6 +19,16 @@ define(['flight/lib/component', 'page/events'], function (defineComponent, event return defineComponent(function() { + 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.toggleSlideContent = function (ev) { ev.preventDefault(); $('.left-off-canvas-toggle').click(); @@ -30,8 +40,8 @@ define(['flight/lib/component', 'page/events'], function (defineComponent, event }; this.after('initialize', function () { - this.on($('#middle-pane-container'), 'click', this.toggleSlideContent); - this.on($('#right-pane'), 'click', this.toggleSlideContent); + this.on($('#middle-pane-container'), 'click', this.closeSlider); + this.on($('#right-pane'), 'click', this.closeSlider); this.on($('.side-nav-toggle'), 'click', this.toggleSlideContent); }); }); |