Fix jshint error

- erroneous comma
Merge pull request #28 from tserong/master

Remove empty Flotr2 directory

Acked-by: Yan-Fa Li <yanfali@gmail.com>
Docco first.js

first.js bootstraps a brand new Calamari Install. Add
some annotations about what the controller is doing.

Signed-off-by: Yan-Fa Li <yanfali@gmail.com>
Add docco for root.js

Signed-off-by: Yan-Fa Li <yanfali@gmail.com>
docco osd.js and tools.js

- eliminate some code which is effectively a noop

Signed-off-by: Yan-Fa Li <yanfali@gmail.com>
Bug: Re-weight animation unrelated to activity

The original demo animation code was still active.  Remove demo
code and re-work the sequence of animations so they react to the
actual events as they occur in order.

- correct tabindex order of re-weight input fields
  Tabbing between fields now follows the expected order.
- rename flag disableRepair -> disableRepairCommand
- add docco annotations

Signed-of-by: Yan-Fa Li <yanfali@gmail.com>
Issue #7444 Clean up $modal code

- modify ModalHelpers.makeOnError so callback is invoked on $hide
- simplify response modal handlers
  - use ModalHelpers.makeOnError consistently
  - log non 202 responses as errors
  - remove 403 handlers as these are now handled globally
- add docco to PoolController.js
- rename helpers to signal they are external by capitalizing references
- add missing 304 interceptor helpers to pool-modify calls
- rename helper references to reflect their sources

Signed-off-by: Yan-Fa Li <yanfali@gmail.com>
Disable user-select for menu bar

Needing to cut and paste the text from a menubar isn't terribly useful
and makes the user experience unpleasant. Disable it.

Signed-off-by: Yan-Fa Li <yanfali@gmail.com>
Refactor for increased clarity

- add some docco

Signed-off-by: Yan-Fa Li <yanfali@gmail.com>
Add docco info to the README.md

Signed-off-by: Yan-Fa Li <yanfali@gmail.com>
Add docco for pool-new and pool-helpers

Signed-off-by: Yan-Fa Li <yanfali@gmail.com>
Issue #8547 - in accurate messaging about task run

Warren noticed that pools can take longer than a few seconds to create.
Don't specify how long it will take as this is based on how busy
the cluster is and is not predictable.

Signed-off-by: Yan-Fa Li
Annotate server-helpers.js

 - removed an unused parameter (colnum)
 - added detail about what and how the server helpers work

Signed-off-by: Yan-Fa Li <yanfali@gmail.com>
Issue #29: Unclear Compass and Ruby instructions

Re-write the instructions to be clearer that to install
compass you need to use Ruby gems.

Signed-off-by: Yan-Fa Li <yanfali@gmail.com>
Issue #8565 Install Hangs Forever

- add a 3 minute timeout to polling loop
- add a warning message that the cluster was not initialized and
  alternative steps are needed
- add a count down timer to modal to display remaining time to wait
- add a skip button to UI to bypass the waiting period

Signed-off-by: Yan-Fa Li <yanfali@gmail.com>
Issue #8565 Visual Fixes

- disable timers once cluster is discovered
- disable skip button once cluster is discovered
- hide giving up message once cluster is discovered.

Signed-off-by: Yan-Fa Li <yanfali@gmail.com>
Rename variables/functions to reflect usage

Previous versions of this code incremented from 0. Decrementing from 180
felt more natural so the code was reversed but the naming was not.

Signed-off-by: Yan-Fa Li <yanfali@gmail.com>
build: Fix path to /git/calamari-clients

This was hardcoded for the old repo name.  It's still
undesirable for the path here to be hardcoded at all,
but at least this will work with a default-named
checkout.

Signed-off-by: John Spray <john.spray@redhat.com>
Merge pull request #34 from ceph/wip-build

build: Fix path to /git/calamari-clients
Issue #8597: do not append 'completed'.

Because the messages are generated server side this often creates
confusing sentence construction. Remove all text from the successful
messages and rely on the server side message and the color of the
notification to communicate intent.

Signed-off-by: Yan-Fa Li <yanfali@gmail.com>