mirror of
https://github.com/Hopiu/django-modeltranslation.git
synced 2026-04-23 06:24:44 +00:00
parent
4ae1fb2d55
commit
9f8571e655
2 changed files with 7 additions and 0 deletions
|
|
@ -219,6 +219,7 @@ The proposed way to include it is through the inner ``Media`` class of a
|
|||
class NewsAdmin(TranslationAdmin):
|
||||
class Media:
|
||||
js = (
|
||||
'modeltranslation/js/force_jquery.js',
|
||||
'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/jquery-ui.min.js',
|
||||
'modeltranslation/js/tabbed_translation_fields.js',
|
||||
)
|
||||
|
|
@ -226,6 +227,9 @@ The proposed way to include it is through the inner ``Media`` class of a
|
|||
'screen': ('modeltranslation/css/tabbed_translation_fields.css',),
|
||||
}
|
||||
|
||||
The ``force_jquery.js`` script is necessary when using Django's built-in
|
||||
``django.jQuery`` object.
|
||||
|
||||
.. note:: This is just an example and might have to be adopted to your setup of
|
||||
serving static files.
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,3 @@
|
|||
if (!jQuery) {
|
||||
jQuery = django.jQuery;
|
||||
}
|
||||
Loading…
Reference in a new issue