changeset 44:c2b8f7e1f4c1

Fix for content add/edit forms openend in a Popups modal dialog
author Franck Deroche <defr@ows.fr>
date Thu, 29 Oct 2009 17:08:26 +0000
parents 196348c8298f
children 4344489b20e6
files js/dnd-library.js
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;