Mercurial > defr > drupal > scald > dnd
changeset 53:4e975bbf1bfe
Correct url to the library when it's programmaticaly reloaded
author | Franck Deroche <franck@defr.org> |
---|---|
date | Tue, 20 Jul 2010 14:22:51 +0200 |
parents | 482aa8971743 |
children | d6f510f35e72 |
files | js/dnd-library.js |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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) {