comparison js/dnd-library.js @ 32:ee520ba7d98b

Use the right element for the ajaxSubmit of the filter form.
author Franck Deroche <franck@defr.org>
date Wed, 03 Jun 2009 14:41:31 +0200
parents 767ebf925654
children abc9d39cfbe9
comparison
equal deleted inserted replaced
31:767ebf925654 32:ee520ba7d98b
127 Drupal.behaviors.dndLibrary.renderLibrary.call($this.get(0), data, $(editor)); 127 Drupal.behaviors.dndLibrary.renderLibrary.call($this.get(0), data, $(editor));
128 }); 128 });
129 return false; 129 return false;
130 }); 130 });
131 $('.view-filters input[type=submit]', $this).click(function() { 131 $('.view-filters input[type=submit]', $this).click(function() {
132 $(this).ajaxSubmit({ 132 $('.view-filters form', $this).ajaxSubmit({
133 'url' : Drupal.settings.basePath + settings.url, 133 'url' : Drupal.settings.basePath + settings.url,
134 'dataType' : 'json', 134 'dataType' : 'json',
135 'success' : function(data) { 135 'success' : function(data) {
136 Drupal.behaviors.dndLibrary.renderLibrary.call($this.get(0), data, $(editor)); 136 Drupal.behaviors.dndLibrary.renderLibrary.call($this.get(0), data, $(editor));
137 } 137 }