cockpit-project/cockpit — pull request #957 by porscheyin (2014-07-31 18:00:56+00:00)
Title: shell: Add input space validation when adding a server

Add input validation and visual style when error occurs.
Remove get_focus and lose_focus functions.
Add some restrictions for empty host name in case "Next" button is enabled accidentally.
Adjust the format of function calls and definitions in cockpit-setup.js

Fixes #943