summaryrefslogtreecommitdiff
path: root/web-ui/app/js/foundation
diff options
context:
space:
mode:
authorLisa Junger <ljunger@thoughtworks.com>2015-02-02 14:51:16 +0100
committerLisa Junger <ljunger@thoughtworks.com>2015-02-02 14:52:25 +0100
commit21c2dfdace2b3577446c9399123073b75a1835e6 (patch)
treed63def2d380a91ecdaf574fc941af07e6766dacf /web-ui/app/js/foundation
parent50af41627871cde394017bbb139dd9b281a7f6bf (diff)
Correct usage of off-canvas
- Issue #242
Diffstat (limited to 'web-ui/app/js/foundation')
-rw-r--r--web-ui/app/js/foundation/off_canvas.js9
1 files changed, 1 insertions, 8 deletions
diff --git a/web-ui/app/js/foundation/off_canvas.js b/web-ui/app/js/foundation/off_canvas.js
index 59213d28..8dfd75ba 100644
--- a/web-ui/app/js/foundation/off_canvas.js
+++ b/web-ui/app/js/foundation/off_canvas.js
@@ -19,18 +19,11 @@ define(['flight/lib/component', 'page/events'], function (defineComponent, event
return defineComponent(function() {
- this.toggleSlider = function (){
- $('.off-canvas-wrap').foundation('offcanvas', 'toggle', 'move-right');
- };
-
this.closeSlider = function (){
- if ($('.off-canvas-wrap').attr('class').indexOf('move-right') > -1) {
- $('.off-canvas-wrap').foundation('offcanvas', 'toggle', 'move-right');
- }
+ $('.exit-off-canvas').click();
};
this.after('initialize', function () {
- this.on($('.left-off-canvas-toggle'), 'click', this.toggleSlider);
this.on($('#middle-pane-container'), 'click', this.closeSlider);
this.on($('#right-pane'), 'click', this.closeSlider);
});