From e4aca152c874424244be284435262ee4b2e5ae4b Mon Sep 17 00:00:00 2001 From: Serghei MIHAI Date: Wed, 13 Aug 2014 15:26:28 +0200 Subject: [PATCH] don't use CMS, loaded only for admin, variable on ajaxified plugin Closes #5273 --- README | 1 + src/cmsplugin_blurp/templates/cmsplugin_blurp/ajax.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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 %}