# HG changeset patch # User Nicholas Jillings # Date 1433408802 -3600 # Node ID 0fdca59892850751b4162b70764d7dc08db56abb # Parent 35682e8e11598c589e2fb2b32a5734120e75f135 Feature #1232: node now in of audioHolder. If not specified, default is 'Comment on track' diff -r 35682e8e1159 -r 0fdca5989285 ape.js --- a/ape.js Thu Jun 04 09:45:32 2015 +0100 +++ b/ape.js Thu Jun 04 10:06:42 2015 +0100 @@ -307,6 +307,13 @@ scaleDOM.style.left = Math.floor((pixelPosition-($(scaleDOM).width()/2)))+'px'; scaleDOM.setAttributeNode(value); }); + + var commentBoxPrefix = interfaceObj.find('commentBoxPrefix'); + if (commentBoxPrefix.length != 0) { + commentBoxPrefix = commentBoxPrefix[0].textContent; + } else { + commentBoxPrefix = "Comment on track"; + } // Extract the hostURL attribute. If not set, create an empty string. var hostURL = textXML.attributes['hostURL']; @@ -413,7 +420,7 @@ trackComment.id = 'comment-div-'+index; // Create a string next to each comment asking for a comment var trackString = document.createElement('span'); - trackString.innerHTML = 'Comment on track '+index; + trackString.innerHTML = commentBoxPrefix+' '+index; // Create the HTML5 comment box 'textarea' var trackCommentBox = document.createElement('textarea'); trackCommentBox.rows = '4'; diff -r 35682e8e1159 -r 0fdca5989285 example_eval/project.xml --- a/example_eval/project.xml Thu Jun 04 09:45:32 2015 +0100 +++ b/example_eval/project.xml Thu Jun 04 10:06:42 2015 +0100 @@ -26,6 +26,7 @@ Max Middle 20 + Comment on fragment @@ -38,7 +39,7 @@ --> - What is your mixing experiance + What is your mixing experience