#1727 ticlet.line foco en cambiar hora
gitea/salix/dev This commit looks good Details

This commit is contained in:
Carlos Jimenez Ruiz 2019-09-24 13:25:18 +02:00
parent d1acd60d5a
commit d56c7ff540
2 changed files with 6 additions and 1 deletions

View File

@ -168,13 +168,14 @@
</vn-confirm> </vn-confirm>
<vn-dialog <vn-dialog
vn-id="changeShippedDialog" vn-id="changeShippedDialog"
on-open="$ctrl.focusInput()"
on-response="$ctrl.changeShipped(response)"> on-response="$ctrl.changeShipped(response)">
<tpl-body> <tpl-body>
<div> <div>
<h5 style="text-align: center"> <h5 style="text-align: center">
<span translate>Change shipped hour</span> <span translate>Change shipped hour</span>
</h5> </h5>
<vn-input-time vn-one model="$ctrl.newShipped" label="Shipped hour"></vn-input-time> <vn-input-time vn-id="newShipped" vn-one model="$ctrl.newShipped" label="Shipped hour"></vn-input-time>
</div> </div>
</tpl-body> </tpl-body>
<tpl-buttons> <tpl-buttons>

View File

@ -297,6 +297,10 @@ class Controller {
); );
} }
} }
focusInput() {
this.$scope.newShipped.focus();
}
} }
Controller.$inject = ['$state', '$scope', '$http', 'vnApp', '$translate', 'aclService']; Controller.$inject = ['$state', '$scope', '$http', 'vnApp', '$translate', 'aclService'];