summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Albo <gabriel@albo.com.br>2015-03-02 17:14:01 -0300
committerGabriel Albo <gabriel@albo.com.br>2015-03-02 17:14:01 -0300
commit9ced33e166c4005a9ee3d3ee57a4f2d14f39ac43 (patch)
tree0caea79d4d851083e2cb1e269482259860c3e7f0
parent1b4eb33206101403b0d2929f6e4ddc99ad4372da (diff)
Fixing the sidenav close toggle
-rw-r--r--web-ui/app/index.html4
-rw-r--r--web-ui/app/js/foundation/off_canvas.js9
2 files changed, 4 insertions, 9 deletions
diff --git a/web-ui/app/index.html b/web-ui/app/index.html
index 395be98d..8804ac9c 100644
--- a/web-ui/app/index.html
+++ b/web-ui/app/index.html
@@ -60,9 +60,9 @@
</header>
<div class="inner-wrap">
+ <a class="left-off-canvas-toggle" href="#">
+ </a>
<article id='middle-pane-container' class="small-5 medium-5 large-5 columns no-padding">
- <a class="left-off-canvas-toggle" href="#">
- </a>
<section id="top-pane" class="small-12 large-12 no-padding">
<div id="compose-search-trigger">
<div id="compose" class="column small-12 large-4 no-padding">
diff --git a/web-ui/app/js/foundation/off_canvas.js b/web-ui/app/js/foundation/off_canvas.js
index 80bbfd31..d1d05dcc 100644
--- a/web-ui/app/js/foundation/off_canvas.js
+++ b/web-ui/app/js/foundation/off_canvas.js
@@ -19,11 +19,6 @@ define(['flight/lib/component', 'page/events'], function (defineComponent, event
return defineComponent(function() {
- this.closeSlider = function (ev){
- ev.preventDefault();
- $('.exit-off-canvas').click();
- };
-
this.toggleSlideContent = function (ev) {
ev.preventDefault();
$('.left-off-canvas-toggle').click();
@@ -35,8 +30,8 @@ define(['flight/lib/component', 'page/events'], function (defineComponent, event
}
this.after('initialize', function () {
- this.on($('#middle-pane-container'), 'click', this.closeSlider);
- this.on($('#right-pane'), 'click', this.closeSlider);
+ this.on($('#middle-pane-container'), 'click', this.toggleSlideContent);
+ this.on($('#right-pane'), 'click', this.toggleSlideContent);
this.on($('.side-nav-toggle'), 'click', this.toggleSlideContent);
});
});