angular.module('horizonApp').directive('hrNumberPicker', function() {
  return {
    restrict: 'A',
    replace: true,
    scope: { initial_value: '=value' },
    templateUrl: '../../static/infrastructure/angular_templates/numberpicker.html',
    link: function(scope, element, attrs) {
      input = element.find('input').first();
      angular.forEach(element[0].attributes, function(attribute) {
        input_attr = input.attr(attribute.nodeName);
        if (typeof input_attr === 'undefined' || input_attr === false) {
          input.attr(attribute.nodeName, attribute.nodeValue);
        }
      });

      scope.value = scope.initial_value;
      scope.disabledInput = (angular.isDefined(attrs.readonly)) ? true : false;

      scope.disableArrow = function() {
        return (scope.value === 0) ? true : false;
      }

      scope.incrementValue = function() {
        if(!scope.disabledInput) {
          scope.value++;
        }
      }

      scope.decrementValue = function() {
        if(!scope.disabledInput && scope.value !== 0) {
          scope.value--;
        }
      }
    }
  };
})

angular.module('horizonApp').directive('hrNumberPicker', function() {
  return {
    restrict: 'A',
    replace: true,
    scope: { initial_value: '=value' },
    templateUrl: '../../static/infrastructure/angular_templates/numberpicker.html',
    link: function(scope, element, attrs) {
      input = element.find('input').first();
      angular.forEach(element[0].attributes, function(attribute) {
        input_attr = input.attr(attribute.nodeName);
        if (typeof input_attr === 'undefined' || input_attr === false) {
          input.attr(attribute.nodeName, attribute.nodeValue);
        }
      });

      scope.value = scope.initial_value;
      scope.disabledInput = (angular.isDefined(attrs.readonly)) ? true : false;

      scope.disableArrow = function() {
        return (scope.value === 0) ? true : false;
      };

      scope.incrementValue = function() {
        if(!scope.disabledInput) {
          scope.value++;
        }
      };

      scope.decrementValue = function() {
        if(!scope.disabledInput && scope.value !== 0) {
          scope.value--;
        }
      };
    }
  };
});

Add missing semicolons in js
Add missing semicolons in js

Change-Id: I1cb8d044766924e554411ce45c3c056139f19078
