Home
last modified time | relevance | path

Searched hist:bc3ab72c (Results 1 – 2 of 2) sorted by relevance

/openbmc/phosphor-webui/app/configuration/controllers/
H A Dnetwork-controller.htmlbc3ab72c Tue Jul 10 15:11:01 CDT 2018 Gunnar Mills <gmills@us.ibm.com> Focus on newly created DNS server field

Got feedback from IBM's design team that to help usability after adding
a DNS Server field, focus on the newly created DNS server field.

Decided to go with a directive instead of putting this in a controller
after reading:

https://stackoverflow.com/questions/22292832/angular-ng-init-pass-element-to-scope,
https://github.com/angular/angular.js/issues/9031,
https://groups.google.com/forum/#!topic/angular/6uxWl8Z0DPw

Having dom manipulation code in the controller is frowned upon.

Tested: Verified the field is in focus (i.e. the cursor is in the
textbox).
Change-Id: Ia548361e7ac47363e05ea2963807bca0c5bf51e2
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
H A Dnetwork-controller.jsbc3ab72c Tue Jul 10 15:11:01 CDT 2018 Gunnar Mills <gmills@us.ibm.com> Focus on newly created DNS server field

Got feedback from IBM's design team that to help usability after adding
a DNS Server field, focus on the newly created DNS server field.

Decided to go with a directive instead of putting this in a controller
after reading:

https://stackoverflow.com/questions/22292832/angular-ng-init-pass-element-to-scope,
https://github.com/angular/angular.js/issues/9031,
https://groups.google.com/forum/#!topic/angular/6uxWl8Z0DPw

Having dom manipulation code in the controller is frowned upon.

Tested: Verified the field is in focus (i.e. the cursor is in the
textbox).
Change-Id: Ia548361e7ac47363e05ea2963807bca0c5bf51e2
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>