Fixed Toggle.display in prototype.js #902 [Lucas Carlson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@980 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
parent
61d236d941
commit
546f30fc10
|
@ -1,3 +1,8 @@
|
|||
*SVN*
|
||||
|
||||
* Fixed Toggle.display in prototype.js #902 [Lucas Carlson]
|
||||
|
||||
|
||||
*1.6.0* (22th March, 2005)
|
||||
|
||||
* Added a JavascriptHelper and accompanying prototype.js library that opens the world of Ajax to Action Pack with a large array of options for dynamically interacting with an application without reloading the page #884 [Sam Stephenson/David]
|
||||
|
|
|
@ -58,8 +58,8 @@ Try = {
|
|||
|
||||
Toggle = {
|
||||
display: function() {
|
||||
for (var i = 0; i < elements.length; i++) {
|
||||
var element = $(elements[i]);
|
||||
for (var i = 0; i < arguments.length; i++) {
|
||||
var element = $(arguments[i]);
|
||||
element.style.display =
|
||||
(element.style.display == 'none' ? '' : 'none');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue