Skip to content

Commit

Permalink
Menu fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vaslabs committed Apr 9, 2016
1 parent ed0dec7 commit 9591636
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions usr/libexec/pi-web-agent/js/framework.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ function View() {
self.fetchViewData();

}
var showing = false;

$(function() {
ko.bindingHandlers.foreachprop = {
Expand All @@ -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' );
});

});
Expand Down

0 comments on commit 9591636

Please sign in to comment.