From a814683d02fa657705245397ca432e9d12033300 Mon Sep 17 00:00:00 2001 From: Tim Tisdall Date: Tue, 15 Jul 2014 20:25:52 +0000 Subject: [PATCH] check that jquery is loaded before using --- deform/static/scripts/deform.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/deform/static/scripts/deform.js b/deform/static/scripts/deform.js index 2ff02329..4433d0c0 100644 --- a/deform/static/scripts/deform.js +++ b/deform/static/scripts/deform.js @@ -4,9 +4,11 @@ * to include the call at the end of the page. */ -$(document).ready(function(){ - deform.load(); -}); +if (typeof jQuery !== 'undefined') { + $(document).ready(function(){ + deform.load(); + }); +} var deform_loaded = false;