Don't escape HTML when loading the vehicles/ordnance dialog.

master
Pacman Ghost 6 years ago
parent cb4da6cc8a
commit 57d3bd4afe
  1. 3
      vasl_templates/webapp/static/vo.js

@ -21,7 +21,8 @@ function add_vo( vo_type, player_id )
for ( var i=0 ; i < entries.length ; ++i ) {
if ( vo_present.indexOf( entries[i].name ) !== -1 )
continue ;
buf.push( "<option value='" + i + "'>" + escapeHTML(entries[i].name) + "</option>" ) ;
// TODO: It'd be nice to be able to use HTML in the option text (e.g. PzKpfw IVF 1/2)
buf.push( "<option value='" + i + "'>" + entries[i].name + "</option>" ) ;
}
var $listbox = $( "#select-vo select" ) ;
$listbox.html( buf.join("") ) ;

Loading…
Cancel
Save