From ea089af494763a96e55ed077306b0127d4622643 Mon Sep 17 00:00:00 2001 From: efernandez Date: Mon, 4 Feb 2019 08:56:19 -0300 Subject: [PATCH] demo jorge --- src/js/controller.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/js/controller.js b/src/js/controller.js index 4c20dcb..545743f 100644 --- a/src/js/controller.js +++ b/src/js/controller.js @@ -2,11 +2,12 @@ angular.module('focaBotoneraFacturador') .controller('focaBotoneraFacturadorController', [ '$scope', '$window', - function($scope, $window) { + 'APP', + function($scope, $window, APP) { this.$onInit = function() { $scope.botones = $scope.$ctrl.botones; + if(APP) return; var max = ($scope.$ctrl.max) ? $scope.$ctrl.max : 12; - if($window.innerWidth > 576) { while(($scope.botones.length % max) !== 0) { $scope.botones.push(''); -- 1.9.1