diff --git a/static/scripts/trackster.js b/static/scripts/trackster.js index c4946d56a35..00d3973027c 100644 --- a/static/scripts/trackster.js +++ b/static/scripts/trackster.js @@ -1852,7 +1852,7 @@ var Tool = function(track, tool_dict) { this.params[this.params.length] = new NumberParameter(name, label, html, value, param_dict.min, param_dict.max); } - else if (type == "select") { + else if (type === "select") { this.params[this.params.length] = new ToolParameter(name, label, html, value); } else { @@ -2598,7 +2598,7 @@ extend(DrawableConfig.prototype, { } else if ( param.type === 'text' ) { row.append( $('').attr("id", id ).val(value).click( function() { $(this).select() })); // Draw paramter as select area - } else if ( param.type == 'select' ) { + } else if ( param.type === 'select' ) { var select = $('').attr("id", id); for ( var i = 0; i < param.options.length; i++ ) { $("").text( param.options[i].label ).attr( "value", param.options[i].value ).appendTo( select ); @@ -2866,7 +2866,7 @@ FeatureTrackTile.prototype.predisplay_actions = function() { row = $("