finished up form media
This commit is contained in:
@ -12,7 +12,6 @@ class MultiSelectWidget(widgets.SelectMultiple):
|
||||
class EmojiWidget(forms.TextInput):
|
||||
class Media:
|
||||
js = ('custom/js/form_emoji.js',)
|
||||
# TODO add class to input fields so there is no longer a static reference to #id_icon in the js but a class based like in multiselect
|
||||
|
||||
|
||||
class EditRecipeForm(forms.ModelForm):
|
||||
|
@ -1,3 +1,3 @@
|
||||
$(document).ready(function () {
|
||||
$('#id_icon').emojioneArea();
|
||||
$('.emojiwidget').emojioneArea();
|
||||
});
|
@ -1,3 +1,3 @@
|
||||
$(document).ready(function () {
|
||||
$('.selectmultiple').select2();
|
||||
$('.multiselectwidget').select2();
|
||||
});
|
@ -45,6 +45,7 @@ INSTALLED_APPS = [
|
||||
'django_filters',
|
||||
'crispy_forms',
|
||||
'rest_framework',
|
||||
'watson',
|
||||
'cookbook.apps.CookbookConfig',
|
||||
]
|
||||
|
||||
|
@ -6,3 +6,4 @@ django-filter
|
||||
django-crispy-forms
|
||||
djangorestframework
|
||||
django-autocomplete-light
|
||||
django-watson
|
Reference in New Issue
Block a user