Commit ea089af494763a96e55ed077306b0127d4622643
1 parent
ad1f83ff27
Exists in
master
and in
1 other branch
demo jorge
Showing
1 changed file
with
3 additions
and
2 deletions
Show diff stats
src/js/controller.js
| ... | ... | @@ -2,11 +2,12 @@ angular.module('focaBotoneraFacturador') |
| 2 | 2 | .controller('focaBotoneraFacturadorController', [ |
| 3 | 3 | '$scope', |
| 4 | 4 | '$window', |
| 5 | - function($scope, $window) { | |
| 5 | + 'APP', | |
| 6 | + function($scope, $window, APP) { | |
| 6 | 7 | this.$onInit = function() { |
| 7 | 8 | $scope.botones = $scope.$ctrl.botones; |
| 9 | + if(APP) return; | |
| 8 | 10 | var max = ($scope.$ctrl.max) ? $scope.$ctrl.max : 12; |
| 9 | - | |
| 10 | 11 | if($window.innerWidth > 576) { |
| 11 | 12 | while(($scope.botones.length % max) !== 0) { |
| 12 | 13 | $scope.botones.push(''); |