commit
5f435ff882
|
@ -386,3 +386,12 @@ Svg = () ->
|
||||||
}
|
}
|
||||||
|
|
||||||
module.directive("tgSvg", [Svg])
|
module.directive("tgSvg", [Svg])
|
||||||
|
|
||||||
|
Autofocus = ($timeout) ->
|
||||||
|
return {
|
||||||
|
restrict: 'A',
|
||||||
|
link : ($scope, $element) ->
|
||||||
|
$timeout -> $element[0].focus()
|
||||||
|
}
|
||||||
|
|
||||||
|
module.directive('tgAutofocus', ['$timeout', Autofocus])
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
.row.single-related-task.related-task-create-form.active(ng-if="openNewRelatedTask")
|
.row.single-related-task.related-task-create-form.active(ng-if="openNewRelatedTask")
|
||||||
.task-name
|
.task-name
|
||||||
input(type='text', autofocus, placeholder="{{'TASK.PLACEHOLDER_SUBJECT' | translate}}")
|
input(type='text', tg-autofocus, placeholder="{{'TASK.PLACEHOLDER_SUBJECT' | translate}}")
|
||||||
.task-settings
|
.task-settings
|
||||||
a.save-task(ng-click="save()" title="{{'COMMON.SAVE' | translate}}")
|
a.save-task(ng-click="save()" title="{{'COMMON.SAVE' | translate}}")
|
||||||
tg-svg(svg-icon="icon-save")
|
tg-svg(svg-icon="icon-save")
|
||||||
|
|
Loading…
Reference in New Issue