# HG changeset patch # User Nicholas Jillings # Date 1433408802 -3600 # Node ID c7848cef5a56a35e5eabb692d55d4a678044981f # Parent 04c2ec6496ef65242d398aa3951ed54fda55f9f6 Feature #1232: node now in of audioHolder. If not specified, default is 'Comment on track' diff -r 04c2ec6496ef -r c7848cef5a56 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 04c2ec6496ef -r c7848cef5a56 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