Revert "Removed force_jquery.js."

This reverts commit 422c7aed74.
This commit is contained in:
Dirk Eschler 2012-10-27 14:43:08 +02:00
parent 4ae1fb2d55
commit 9f8571e655
2 changed files with 7 additions and 0 deletions

View file

@ -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.

View file

@ -0,0 +1,3 @@
if (!jQuery) {
jQuery = django.jQuery;
}