# HG changeset patch # User Franck Deroche # Date 1279628372 -7200 # Node ID 5cf2b262b9e43f356ae5871a051652597762d66e # Parent a54d04d765549b3d969d95bba5368665bce1df73 Behaviors: Don't error out if we're loaded but not in settings diff -r a54d04d76554 -r 5cf2b262b9e4 js/dnd-library.js --- a/js/dnd-library.js Fri Jul 16 15:02:35 2010 +0200 +++ b/js/dnd-library.js Tue Jul 20 14:19:32 2010 +0200 @@ -30,6 +30,9 @@ * behavior attachment. */ Drupal.behaviors.dndLibrary = function(context) { + if (!Drupal.settings.dndEnabledLibraries) { + return; + } $('.dnd-library-wrapper', context).each(function() { var $this = $(this);