Mercurial > defr > drupal > scald > dnd
changeset 51:5cf2b262b9e4
Behaviors: Don't error out if we're loaded but not in settings
author | Franck Deroche <franck@defr.org> |
---|---|
date | Tue, 20 Jul 2010 14:19:32 +0200 |
parents | a54d04d76554 |
children | 482aa8971743 |
files | js/dnd-library.js |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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);