mrjoes/flask-admin — pull request #742 by rma4ok (2014-12-15 18:56:46+00:00)
Title: [fix] Inline form field id assigning logic

Also cleaned hanging spaces (empty lines full of spaces)

# Explanation
Previous logic:
```js
if ($parentForm.length > 0 && elID.indexOf($parentForm.attr('id')) !== 0) {
id = $parentForm.attr('id') + '-' + elID;
}
```
This logic would work but checking on id containing another id doesn't seem transparent.

I propose
```js
if ($parentForm.hasClass('fresh')) {
id = $parentForm.attr('id') + '-' + elID;
}
```
which has clear case when we add parentID prefix