mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-08 18:28:50 +01:00
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:
parent
520cf48da2
commit
396008edc7
2 changed files with 2 additions and 841 deletions
|
|
@ -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
Loading…
Add table
Add a link
Reference in a new issue