mirror of
https://github.com/zero-peak/ZeroOmega.git
synced 2025-01-22 23:08:13 -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'
|
restrict: 'A'
|
||||||
templateUrl: 'partials/input_group_clear.html'
|
templateUrl: 'partials/input_group_clear.html'
|
||||||
scope:
|
scope:
|
||||||
'model': '=model'
|
|
||||||
'type': '@type'
|
'type': '@type'
|
||||||
'ngPattern': '=?ngPattern'
|
'ngPattern': '=?ngPattern'
|
||||||
'placeholder': '@placeholder'
|
'placeholder': '@placeholder'
|
||||||
@ -37,15 +36,6 @@ angular.module('omega').directive 'omegaUpload', ->
|
|||||||
scope.error({'$error': e.target.error})
|
scope.error({'$error': e.target.error})
|
||||||
reader.readAsText(input.files[0])
|
reader.readAsText(input.files[0])
|
||||||
input.value = ''
|
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', ->
|
angular.module('omega').directive 'omegaIp2str', ->
|
||||||
restrict: 'A'
|
restrict: 'A'
|
||||||
priority: 2 # Run post-link after input directive (0) and ngModel (1).
|
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')
|
style='display: inline-block;' options='options')
|
||||||
div.checkbox
|
div.checkbox
|
||||||
label
|
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}}
|
span {{'options_showConditionTypesAdvanced' | tr}}
|
||||||
p.help-block
|
p.help-block
|
||||||
| {{'options_showConditionTypesAdvancedHelp' | tr}}
|
| {{'options_showConditionTypesAdvancedHelp' | tr}}
|
||||||
|
Loading…
Reference in New Issue
Block a user