Merge pull request #1393 from emanuelschuetze/bsmselect-updated
Reduce the usage of bsmselect jquery plugin.
This commit is contained in:
commit
adefb49457
@ -136,7 +136,7 @@
|
|||||||
<script type="text/javascript" src="{% static 'js/jquery/jquery.bsmselect.js' %}"></script>
|
<script type="text/javascript" src="{% static 'js/jquery/jquery.bsmselect.js' %}"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
// use jquery-bsmselect for all <select multiple> form elements
|
// use jquery-bsmselect for all <select multiple> form elements
|
||||||
$("select[multiple]").bsmSelect({
|
$("select[multiple]:not(.dont_use_bsmselect)").bsmSelect({
|
||||||
removeLabel: '<sup><b>X</b></sup>',
|
removeLabel: '<sup><b>X</b></sup>',
|
||||||
containerClass: 'bsmContainer',
|
containerClass: 'bsmContainer',
|
||||||
listClass: 'bsmList-custom',
|
listClass: 'bsmList-custom',
|
||||||
|
@ -84,10 +84,11 @@ class UserUpdateForm(UserCreateForm):
|
|||||||
|
|
||||||
class GroupForm(forms.ModelForm, CssClassMixin):
|
class GroupForm(forms.ModelForm, CssClassMixin):
|
||||||
permissions = LocalizedModelMultipleChoiceField(
|
permissions = LocalizedModelMultipleChoiceField(
|
||||||
queryset=Permission.objects.all(), label=ugettext_lazy('Permissions'),
|
queryset=Permission.objects.all(), label=ugettext_lazy('Permissions'), required=False,
|
||||||
required=False)
|
widget=forms.SelectMultiple(attrs={'class': 'dont_use_bsmselect'}))
|
||||||
users = forms.ModelMultipleChoiceField(
|
users = forms.ModelMultipleChoiceField(
|
||||||
queryset=User.objects.all(), label=ugettext_lazy('Participants'), required=False)
|
queryset=User.objects.all(), label=ugettext_lazy('Participants'), required=False,
|
||||||
|
widget=forms.SelectMultiple(attrs={'class': 'dont_use_bsmselect'}))
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
model = Group
|
model = Group
|
||||||
|
Loading…
Reference in New Issue
Block a user