mirror of
https://github.com/zero-peak/ZeroOmega.git
synced 2025-01-22 15:08:12 -05:00
Fix #1165.
This commit is contained in:
parent
50f95b74b9
commit
362cb9fd50
@ -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).
|
||||
|
@ -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}}
|
||||
|
Loading…
Reference in New Issue
Block a user