# HG changeset patch # User Franck Deroche # Date 1256836106 0 # Node ID c2b8f7e1f4c16a3c85961d2aaa8c3acf05a2350b # Parent 196348c8298fb20d2d7290049a701dd0e5f1c292 Fix for content add/edit forms openend in a Popups modal dialog diff -r 196348c8298f -r c2b8f7e1f4c1 js/dnd-library.js --- a/js/dnd-library.js Thu Oct 15 11:45:41 2009 +0200 +++ b/js/dnd-library.js Thu Oct 29 17:08:26 2009 +0000 @@ -138,11 +138,13 @@ return false; }); $('.view-filters input[type=submit]', $this).click(function() { + var submit = $(this); $('.view-filters form', $this).ajaxSubmit({ 'url' : Drupal.settings.basePath + settings.url, 'dataType' : 'json', 'success' : function(data) { - Drupal.behaviors.dndLibrary.renderLibrary.call($this.get(0), data, $(editor)); + var target = submit.parents('div.dnd-library-wrapper'); + Drupal.behaviors.dndLibrary.renderLibrary.call(target, data, $(editor)); } }); return false;