commit/galaxy-central: jeremy goecks: JS Config: iterate through param options using underscore.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/9098e1c05065/ Changeset: 9098e1c05065 User: jeremy goecks Date: 2014-03-09 18:13:38 Summary: JS Config: iterate through param options using underscore. Affected #: 1 file diff -r f5700f9988e64b84254e72b619fa4d2dc1b4e444 -r 9098e1c050652c0828cb5bf79f835c2ca0e943d8 static/scripts/utils/config.js --- a/static/scripts/utils/config.js +++ b/static/scripts/utils/config.js @@ -175,9 +175,9 @@ // Draw parameter as select area else if ( type === 'select' ) { var select = $('<select />').attr("id", id); - for ( var i = 0; i < param.options.length; i++ ) { - $("<option/>").text( param.options[i].label ).attr( "value", param.options[i].value ).appendTo( select ); - } + _.each(param.get('options'), function(option) { + $("<option/>").text( option.label ).attr( "value", option.value ).appendTo( select ); + }); select.val( value ); row.append( select ); Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
commits-noreply@bitbucket.org