This commit is contained in:
FelisCatus 2017-08-18 21:22:54 -04:00
parent 50f95b74b9
commit 362cb9fd50
2 changed files with 1 additions and 11 deletions

View File

@ -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).

View File

@ -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}}