symfony2admingenerator/AdmingeneratorGeneratorBundle — pull request #241 by Hakadel (2012-10-10 13:30:51+00:00)
Title: Add a required attribute for the "double_list" type in the template and fix a JS condition

Hello,

I have added a twig condition for displaying **required="required="** if the double_list is required.

And I have fixed this condition :
```javascript
if (element.className == className + '-selected')
```
It's working but if we dynamically add a new class in **element.className**, the condition will not match. (ex: *class="double_list_select-selected ui-state-valid"*)

I have transformed the code to :
```javascript
selectedClassName = className + '-selected';
if (element.className.match(new RegExp(selectedClassName, 'gi')))
```