From 9f8f4a49cf908064b0303f09fde0556aee83142b Mon Sep 17 00:00:00 2001 From: PliablePixels Date: Thu, 6 Aug 2015 17:39:59 -0400 Subject: timeline now has a joystick button that is easier to use, also removed dependencies --- www/external/angular-circular-navigation.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'www/external/angular-circular-navigation.js') diff --git a/www/external/angular-circular-navigation.js b/www/external/angular-circular-navigation.js index 6f62a9e5..f8ac7034 100644 --- a/www/external/angular-circular-navigation.js +++ b/www/external/angular-circular-navigation.js @@ -30,7 +30,17 @@ function ($scope, $element, $attrs) { $scope.toggleMenu = function () { - $scope.options.isOpen = !$scope.options.isOpen; + //PP + if (typeof $scope.options.button.onclick === 'function') + { + // console.log ("FUNCTION"); + $scope.options.button.onclick(); + } + else + { + // console.log ("NO FUNCTION"); + $scope.options.isOpen = !$scope.options.isOpen; + } }; $scope.perform = function (options, item) { -- cgit v1.2.3