diff options
| author | PliablePixels <pliablepixels@gmail.com> | 2015-07-02 10:33:26 -0400 |
|---|---|---|
| committer | PliablePixels <pliablepixels@gmail.com> | 2015-07-02 10:33:26 -0400 |
| commit | f3136eefe9105deb1d97123629dae80c2de66304 (patch) | |
| tree | 5389bd34d555ab4c3c065292e17cd41576db33ae /www/lib/ng-mfb/src/mfb-directive.js | |
| parent | 5e523cf0d1a3644f6a41709b777b08f73ec71d49 (diff) | |
updated libraries, squashed the problem of not getting bar handles on click, optimized montage view
Diffstat (limited to 'www/lib/ng-mfb/src/mfb-directive.js')
| -rw-r--r-- | www/lib/ng-mfb/src/mfb-directive.js | 13 |
1 files changed, 9 insertions, 4 deletions
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 @@ ' <a ng-click="clicked()" ng-mouseenter="hovered()" ng-mouseleave="hovered()"' + ' style="background: transparent; box-shadow: none;"' + ' ng-attr-data-mfb-label="{{label}}" class="mfb-component__button--main">' + - ' <md-button class="md-fab md-primary" aria-label={{label}}>' + - ' <md-icon style="position:initial;" md-svg-icon="{{resting}}"' + + ' <md-button class="md-fab md-primary" aria-label={{label}} style="position:relative;">' + + ' <md-icon style="left: 0;" md-svg-icon="{{resting}}"' + ' class="mfb-component__main-icon--resting"></md-icon>' + ' <md-icon style="position:initial;" md-svg-icon="{{active}}"' + ' class="mfb-component__main-icon--active"></md-icon>' + @@ -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(); } |
