Ghost/ghost/admin/assets/vendor
Gabor Javorszky 44f2cb0153 Added client side validation
Closes #581.

* Basically adds the client side of node validator, that we're already using
* Validator is plonked onto `Ghost.Validator`
* Usage is identical as to https://github.com/chriso/node-validator
* Has sanitizing values et al
* `Ghost.Validator.error` is redefined, it populates Ghost.Validator._errors (Array)
* `Ghost.Validator.handleErrors` is supposed to print out the multiple error messages, if there are multiple (this is broken due to how notifications are presented `.html` instead of `.append`), and also apply class to element
* The ajax calls are wrapped in an if to prevent network traffic if something's not right on client side
* Added validation to general settings and user settings screens.
* On validation error, optionally adds `.input-error` to whatever element you reference, see below (if `el` exists on the error object). This is the only place where usage is different to the original implementation. Redeclared `error()` function in `init.js`
* Usage: `Ghost.Validate.check(valueToCheck, {message: "the error message", el: $('#the element')}).isEmail()`
* The element above will receive the `.input-error` class. `isEmail()` is one of the stuff you can check against.
2013-09-14 10:52:27 +01:00
..
codemirror Adding Github Flavored Markdown support 2013-08-29 14:32:09 +01:00
icheck App restructure - closes #245 2013-07-11 20:23:34 +01:00
showdown Adding Github Flavored Markdown support 2013-08-29 14:32:09 +01:00
chart.min.js App restructure - closes #245 2013-07-11 20:23:34 +01:00
countable.js App restructure - closes #245 2013-07-11 20:23:34 +01:00
jquery.hammer.min.js Improved mobile interactions 2013-08-16 12:44:11 +01:00
packery.pkgd.min.js App restructure - closes #245 2013-07-11 20:23:34 +01:00
shortcuts.js App restructure - closes #245 2013-07-11 20:23:34 +01:00
to-title-case.js Improve title casing 2013-07-18 14:42:16 +01:00
validator-client.js Added client side validation 2013-09-14 10:52:27 +01:00