diff --git a/omega-web/src/omega/directives.coffee b/omega-web/src/omega/directives.coffee index 443964c..7a1bd1d 100644 --- a/omega-web/src/omega/directives.coffee +++ b/omega-web/src/omega/directives.coffee @@ -2,7 +2,6 @@ angular.module('omega').directive 'inputGroupClear', ($timeout) -> restrict: 'A' templateUrl: 'partials/input_group_clear.html' scope: - 'model': '=model' 'type': '@type' 'ngPattern': '=?ngPattern' 'placeholder': '@placeholder' @@ -37,15 +36,6 @@ angular.module('omega').directive 'omegaUpload', -> scope.error({'$error': e.target.error}) reader.readAsText(input.files[0]) input.value = '' -angular.module('omega').directive 'omegaInt2str', -> - restrict: 'A' - priority: 2 # Run post-link after input directive (0) and ngModel (1). - require: 'ngModel' - link: (scope, element, attr, ngModel) -> - ngModel.$parsers.push (value) -> - parseInt(value) - ngModel.$formatters.push (value) -> - '' + value angular.module('omega').directive 'omegaIp2str', -> restrict: 'A' priority: 2 # Run post-link after input directive (0) and ngModel (1). diff --git a/omega-web/src/partials/ui.jade b/omega-web/src/partials/ui.jade index 8db614b..e62b183 100644 --- a/omega-web/src/partials/ui.jade +++ b/omega-web/src/partials/ui.jade @@ -35,7 +35,7 @@ section.settings-group style='display: inline-block;' options='options') div.checkbox label - input(type='checkbox' ng-model='options["-showConditionTypes"]' ng-true-value='1' ng-false-value='0' omega-int2str) + input(type='checkbox' ng-model='options["-showConditionTypes"]' ng-true-value='1' ng-false-value='0') span {{'options_showConditionTypesAdvanced' | tr}} p.help-block | {{'options_showConditionTypesAdvancedHelp' | tr}}