turns out that getElementsByClassName is removed from prototype and it therfore falls back to the function of the browser which has different semantics. Found here http://www.prototypejs.org/api/utility/getElementsByClassName

git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@872 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
lrbalt 2008-06-06 19:32:15 +00:00
parent 520cf48da2
commit 396008edc7
2 changed files with 2 additions and 841 deletions

View file

@ -28,7 +28,7 @@ ToDoItems.prototype = {
{
toggleElem = this.containerToggles[i];
containerElem = toggleElem.parentNode.parentNode
itemsElem = document.getElementsByClassName('toggle_target',containerElem)[0];
itemsElem = $(containerElem.id).select("div#"+containerElem.id+"items")[0];
this.toggleContainerMap[toggleElem.id] = containerElem;
this.toggleItemsMap[toggleElem.id] = itemsElem;
this.containerItemsMap[containerElem.id] = itemsElem;
@ -138,7 +138,7 @@ ToDoItems.prototype = {
this.lastEffect = Effect.BlindUp(itemsElem, { duration: 0.4});
toggleElem.setAttribute('title', 'Expand');
imgElem = this.findToggleImgElem(toggleElem);
imgElem.src = imgElem.src.replace('collapse','expand');
imgElem.src = imgElem.src.replace('collapse','expand');
imgElem.setAttribute('title','Expand');
},
findToggleImgElem: function(toggleElem)

File diff suppressed because one or more lines are too long