VRFS-1809 - shouldn't be able to select 'default' instrument during FTUE

This commit is contained in:
Anthony Davis 2014-06-23 22:28:38 -05:00
parent a787601ca8
commit b897e088ce
1 changed files with 3 additions and 1 deletions

View File

@ -40,7 +40,9 @@
return false;
};
var $select = $(context._.template($('#template-icon-instrument-select').html(), {instruments:context.JK.getInstrumentIconMap24()}, { variable: 'data' }));
var instruments = context.JK.getInstrumentIconMap24();
delete instruments['default']; //shouldn't be able to select 'default' here -- VRFS-1809
var $select = $(context._.template($('#template-icon-instrument-select').html(), {instruments:instruments}, { variable: 'data' }));
var $ul = $select.find('ul');
var $currentInstrument = $select.find('.current-instrument');