diff --git a/README b/README index bfbc760..e27b558 100644 --- a/README +++ b/README @@ -56,6 +56,7 @@ Common configuration keys ========================= - ``ajax`` if True this key indicate to the base plugin to render the plugin using an AJAX request. + Requires jQuery to be loaded previously by the page using the plugin. You must add the ``cmsplugin_blurp.urls`` to your urls:: diff --git a/src/cmsplugin_blurp/templates/cmsplugin_blurp/ajax.html b/src/cmsplugin_blurp/templates/cmsplugin_blurp/ajax.html index 7abe443..c7eeca4 100644 --- a/src/cmsplugin_blurp/templates/cmsplugin_blurp/ajax.html +++ b/src/cmsplugin_blurp/templates/cmsplugin_blurp/ajax.html @@ -29,7 +29,7 @@ reload(); }); } - })((CMS && CMS.$) || $) + })($) {% endaddtoblock %}