comparison js/dnd-library.js @ 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
comparison
equal deleted inserted replaced
43:196348c8298f 44:c2b8f7e1f4c1
136 Drupal.behaviors.dndLibrary.renderLibrary.call($this.get(0), data, $(editor)); 136 Drupal.behaviors.dndLibrary.renderLibrary.call($this.get(0), data, $(editor));
137 }); 137 });
138 return false; 138 return false;
139 }); 139 });
140 $('.view-filters input[type=submit]', $this).click(function() { 140 $('.view-filters input[type=submit]', $this).click(function() {
141 var submit = $(this);
141 $('.view-filters form', $this).ajaxSubmit({ 142 $('.view-filters form', $this).ajaxSubmit({
142 'url' : Drupal.settings.basePath + settings.url, 143 'url' : Drupal.settings.basePath + settings.url,
143 'dataType' : 'json', 144 'dataType' : 'json',
144 'success' : function(data) { 145 'success' : function(data) {
145 Drupal.behaviors.dndLibrary.renderLibrary.call($this.get(0), data, $(editor)); 146 var target = submit.parents('div.dnd-library-wrapper');
147 Drupal.behaviors.dndLibrary.renderLibrary.call(target, data, $(editor));
146 } 148 }
147 }); 149 });
148 return false; 150 return false;
149 }); 151 });
150 Drupal.attachBehaviors($this); 152 Drupal.attachBehaviors($this);