From f3136eefe9105deb1d97123629dae80c2de66304 Mon Sep 17 00:00:00 2001 From: PliablePixels Date: Thu, 2 Jul 2015 10:33:26 -0400 Subject: updated libraries, squashed the problem of not getting bar handles on click, optimized montage view --- www/lib/ng-mfb/src/mfb-directive.js | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'www/lib/ng-mfb/src/mfb-directive.js') diff --git a/www/lib/ng-mfb/src/mfb-directive.js b/www/lib/ng-mfb/src/mfb-directive.js index d4cf214f..68a3c350 100644 --- a/www/lib/ng-mfb/src/mfb-directive.js +++ b/www/lib/ng-mfb/src/mfb-directive.js @@ -27,8 +27,8 @@ ' ' + - ' ' + - ' ' + + ' ' + ' ' + @@ -73,9 +73,9 @@ label: '@', resting: '@restingIcon', active: '@activeIcon', - + mainAction: '&', menuState: '=?', - togglingMethod: '@', + togglingMethod: '@' }, templateUrl: function(elem, attrs) { return attrs.templateUrl || 'ng-mfb-menu-default.tpl.html'; @@ -124,6 +124,11 @@ } scope.clicked = function() { + // If there is a main action, let's fire it + if (scope.mainAction) { + scope.mainAction(); + } + if(!_isHoverActive()){ flipState(); } -- cgit v1.2.3