mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
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
This commit is contained in:
parent
57565b3506
commit
130001c377
3 changed files with 14 additions and 7 deletions
|
@ -86,9 +86,12 @@ Element.childrenWithClassName = function(element, className) {
|
|||
}
|
||||
|
||||
Element.forceRerendering = function(element) {
|
||||
var n = document.createTextNode(' ');
|
||||
$(element).appendChild(n);
|
||||
Element.remove(n);
|
||||
try {
|
||||
element = $(element);
|
||||
var n = document.createTextNode(' ');
|
||||
element.appendChild(n);
|
||||
element.removeChild(n);
|
||||
} catch(e) {}
|
||||
}
|
||||
|
||||
Array.prototype.call = function() {
|
||||
|
|
3
railties/html/javascripts/dragdrop.js
vendored
3
railties/html/javascripts/dragdrop.js
vendored
|
@ -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);
|
||||
|
|
9
railties/html/javascripts/effects.js
vendored
9
railties/html/javascripts/effects.js
vendored
|
@ -86,9 +86,12 @@ Element.childrenWithClassName = function(element, className) {
|
|||
}
|
||||
|
||||
Element.forceRerendering = function(element) {
|
||||
var n = document.createTextNode(' ');
|
||||
$(element).appendChild(n);
|
||||
Element.remove(n);
|
||||
try {
|
||||
element = $(element);
|
||||
var n = document.createTextNode(' ');
|
||||
element.appendChild(n);
|
||||
element.removeChild(n);
|
||||
} catch(e) {}
|
||||
}
|
||||
|
||||
Array.prototype.call = function() {
|
||||
|
|
Loading…
Reference in a new issue