# HG changeset patch # User Franck Deroche # Date 1279628571 -7200 # Node ID 4e975bbf1bfe297b599c806a72ff634c946515fd # Parent 482aa897174315c7b21092777a0fd88dc2d5dbe8 Correct url to the library when it's programmaticaly reloaded diff -r 482aa8971743 -r 4e975bbf1bfe js/dnd-library.js --- a/js/dnd-library.js Tue Jul 20 14:20:01 2010 +0200 +++ b/js/dnd-library.js Tue Jul 20 14:22:51 2010 +0200 @@ -163,7 +163,7 @@ 'dataType' : 'json', 'success' : function(data) { var target = reset.parents('div.dnd-library-wrapper').get(0); - target.library_url = Drupal.dndEnabledLibraries[editor].url; + target.library_url = Drupal.settings.dndEnabledLibraries[editor[0].id].url; Drupal.behaviors.dndLibrary.renderLibrary.call(target, data, $(editor)); }, 'beforeSubmit': function (data, form, options) {