Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

changed button ng-click from <a> to <ul> #20

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions dist/ion-floating-menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Material UI-like Floating Action Button and Menu for Ionic applications.
*
* By @ennedigi
*
*
* Licensed under the MIT license. Please see LICENSE for more information.
*
*/
Expand All @@ -32,25 +32,25 @@
iconColor: '@?',
hasFooter: '=?',
isCentered: '=?'},
template: '<ul id="floating-button" ng-class="{\'center\': isCentered}" ng-style="{\'bottom\' : \'{{bottomValue}}\' }">' +
template: '<ul ng-click="click()" id="floating-button" ng-class="{\'center\': isCentered}" ng-style="{\'bottom\' : \'{{bottomValue}}\' }">' +
'<li ng-class="buttonClass" ng-style="{\'background-color\': buttonColor }">' +
'<a ng-click="click()"><i class="icon menu-icon" ng-class="{ \'{{icon}}\' : true}" ng-style="{\'color\': iconColor }"></i></a>' +
'<a><i class="icon menu-icon" ng-class="{ \'{{icon}}\' : true}" ng-style="{\'color\': iconColor }"></i></a>' +
'</li>' +
'</ul>',
replace: false,
transclude: true,
controller: ionFloatingButtonCtrl
};
}

ionFloatingButtonCtrl.$inject = ['$scope'];
function ionFloatingButtonCtrl($scope) {
$scope.buttonColor = $scope.buttonColor || '#2AC9AA';
$scope.icon = $scope.icon || 'ion-plus';
$scope.iconColor = $scope.iconColor || '#fff';
$scope.hasFooter = $scope.hasFooter || false;
$scope.isCentered = $scope.isCentered || false;

if ($scope.hasFooter) {
$scope.bottomValue = '60px';
} else {
Expand Down Expand Up @@ -124,7 +124,7 @@
$scope.buttonColor = menuOpenColor;
$scope.icon = menuOpenIcon;
$scope.iconColor = menuOpenIconColor;

if (backdrop){
$ionicBackdrop.retain();
}
Expand Down Expand Up @@ -153,7 +153,7 @@
} else {
$scope.bottomValue = '20px';
}

}

ionFloatingItemCtrl.$inject = ['$scope'];
Expand Down