aboutsummaryrefslogtreecommitdiffstats
path: root/railties/html/javascripts/dragdrop.js
diff options
context:
space:
mode:
authorThomas Fuchs <thomas@fesch.at>2006-03-09 09:59:29 +0000
committerThomas Fuchs <thomas@fesch.at>2006-03-09 09:59:29 +0000
commit130001c377e7abf17ea2f4f856cab30882a60f92 (patch)
tree5ab77da8250ccdf1e19d4ee5679ddfa52564ce17 /railties/html/javascripts/dragdrop.js
parent57565b350609449f17013baea2fbd7e20f393522 (diff)
downloadrails-130001c377e7abf17ea2f4f856cab30882a60f92.tar.gz
rails-130001c377e7abf17ea2f4f856cab30882a60f92.tar.bz2
rails-130001c377e7abf17ea2f4f856cab30882a60f92.zip
Update to latest script.aculo.us trunk, fixes possible issue with Effect.Appear on IE
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3824 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/html/javascripts/dragdrop.js')
-rw-r--r--railties/html/javascripts/dragdrop.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/railties/html/javascripts/dragdrop.js b/railties/html/javascripts/dragdrop.js
index b44afe4881..2b68ee30e4 100644
--- a/railties/html/javascripts/dragdrop.js
+++ b/railties/html/javascripts/dragdrop.js
@@ -558,9 +558,10 @@ var Sortable = {
findElements: function(element, options) {
if(!element.hasChildNodes()) return null;
var elements = [];
+ var only = options.only ? [options.only].flatten() : null;
$A(element.childNodes).each( function(e) {
if(e.tagName && e.tagName.toUpperCase()==options.tag.toUpperCase() &&
- (!options.only || (Element.hasClassName(e, options.only))))
+ (!only || (Element.classNames(e).detect(function(v) { return only.include(v) }))))
elements.push(e);
if(options.tree) {
var grandchildren = this.findElements(e, options);