elclanrs/jq-idealforms — pull request #38 by sergeylukin (2014-03-20 05:14:17+00:00)
Title: Rename ajax.ajaxError to ajax.ajax_error

Camelcase format is not compatible with HTML data-* attributes.
I keep error translations inside HTML data-* attributes, like so:

```html

```

and dynamically parse and extend IdealForms errors object with the values
found in `.js-form-translations`.

Btw the approach of keeping errors in HTML is very convenient, especially
in app that is designed so that translators' UI displays all terms used in
current viewed View ready to be translated. If translations are kept in JS,
that would be harder to accomplish.

Without this patch, the workaround is dirty:

```js
...

if( key === 'ajax_error' ) key = ajaxError

...
```