From 95916364713dc0c175edf186740a47631612d0b3 Mon Sep 17 00:00:00 2001 From: Vasilis Nicolaou Date: Sat, 9 Apr 2016 18:05:22 +0000 Subject: [PATCH] Menu fix --- usr/libexec/pi-web-agent/js/framework.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/usr/libexec/pi-web-agent/js/framework.js b/usr/libexec/pi-web-agent/js/framework.js index 07cc9154..87605476 100644 --- a/usr/libexec/pi-web-agent/js/framework.js +++ b/usr/libexec/pi-web-agent/js/framework.js @@ -52,7 +52,6 @@ function View() { self.fetchViewData(); } -var showing = false; $(function() { ko.bindingHandlers.foreachprop = { @@ -79,12 +78,10 @@ $(function() { edge: 'right', // Choose the horizontal origin } ); - + $('#menu-controller').click(function() { - var status = showing ? 'hide' : 'show'; console.log(status); - $('.button-collapse').sideNav( status ); - showing = !showing; + $('.button-collapse').sideNav( 'show' ); }); });