# HG changeset patch # User Nicholas Jillings # Date 1433413101 -3600 # Node ID 40f9b17252798447401cf808aa16f2fb2d28469c # Parent 1b6f4304dedc6ef9882e8829fd3916f9779f4eb9 ape.js pageSaveXML uses view from audioObjects. diff -r 1b6f4304dedc -r 40f9b1725279 ape.js --- a/ape.js Thu Jun 04 11:01:19 2015 +0100 +++ b/ape.js Thu Jun 04 11:18:21 2015 +0100 @@ -334,6 +334,7 @@ // Now load each audio sample. First create the new track by passing the full URL var trackURL = hostURL + this.attributes['url'].value; audioEngineContext.newTrack(trackURL); + audioEngineContext.audioObjects[index].id = this.attributes['id'].value; if (commentShow) { // Create document objects to hold the comment boxes @@ -355,7 +356,7 @@ trackComment.appendChild(br); trackComment.appendChild(trackCommentBox); feedbackHolder.appendChild(trackComment); - audioEngineContext.audioObjects[index].commentDOM = trackCommentBox; + audioEngineContext.audioObjects[index].commentDOM = trackComment; } // Create a slider per track @@ -561,22 +562,21 @@ metric.appendChild(testTime); } xmlDoc.appendChild(metric); - var trackSliderObjects = document.getElementsByClassName('track-slider'); - var commentObjects = document.getElementsByClassName('comment-div'); - for (var i=0; i