Mercurial > hg > webaudioevaluationtool
diff test_create/test_core.js @ 2876:88dff8b9247c
#75
author | Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk> |
---|---|
date | Wed, 31 May 2017 11:52:26 +0100 |
parents | 18261c4593c4 |
children | 596e83ffc73a |
line wrap: on
line diff
--- a/test_create/test_core.js Wed May 31 11:43:48 2017 +0100 +++ b/test_create/test_core.js Wed May 31 11:52:26 2017 +0100 @@ -298,12 +298,14 @@ $s.clearScales = function () { $s.interface.scales = []; }; - $s.useScales = function (scales) { + $s.useScales = function (scale) { $s.clearScales(); - scales.forEach(function (s) { + scale.scales.forEach(function (s) { $s.interface.scales.push(s); }); + $s.selectedScale = "Scale: " + scale.name }; + $s.selectedScale = "Scale: Custom"; }]); AngularInterface.controller("page", ['$scope', '$element', '$window', function ($s, $e, $w) { $s.addInterface = function () {