X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=root%2Fjs%2Fcomponentload.js;h=06a8706c586bf33a1002d0dab03f730c1a02208f;hb=664580033ad210926cafbb4940b20078f61b7cc0;hp=7551a86df65128fc87331529bfe2b6a4b0f8fdb3;hpb=39b8b37bb0ad47b3cb83cb6cd7654567ed2adec0;p=scpubgit%2Fstemmaweb.git diff --git a/root/js/componentload.js b/root/js/componentload.js index 7551a86..06a8706 100644 --- a/root/js/componentload.js +++ b/root/js/componentload.js @@ -551,52 +551,58 @@ $(document).ready( function() { // populate the form. var algorithmTypes = {}; var algorithmArgs = {}; - $.each( stemwebAlgorithms, function( i, o ) { - if( o.model === 'algorithms.algorithm' ) { - // it's an algorithm. - algorithmTypes[ o.pk ] = o.fields; - } else if( o.model == 'algorithms.algorithmarg' && o.fields.external ) { - // it's an option for an algorithm that we should display. - algorithmArgs[ o.pk ] = o.fields; - } - }); - $.each( algorithmTypes, function( pk, fields ) { - var algopt = $('