fixed javascript error on session detail screen
This commit is contained in:
parent
47293afee4
commit
9643fe1187
|
|
@ -339,7 +339,14 @@
|
|||
|
||||
if ("instrument_list" in pending_rsvp_request && pending_rsvp_request.instrument_list != null) {
|
||||
$.each(pending_rsvp_request.instrument_list, function (index, instrument) {
|
||||
var instrumentId = context.JK.getInstrumentId(instrument.id);
|
||||
var instrumentId;
|
||||
|
||||
if (instrument) {
|
||||
instrumentId = context.JK.getInstrumentId(instrument.id);
|
||||
}
|
||||
else {
|
||||
instrumentId = 'other';
|
||||
}
|
||||
var inst = context.JK.getInstrumentIcon24(instrumentId);
|
||||
instrumentLogoHtml += '<img title="' + instrumentId + '" hoveraction="instrument" data-instrument-id="' + instrumentId + '" src="' + inst + '" width="24" height="24" /> ';
|
||||
instrumentDesc.push(instrumentId);
|
||||
|
|
@ -378,7 +385,14 @@
|
|||
$.each(sessionData.approved_rsvps, function(index, approved_rsvp) {
|
||||
if ("instrument_list" in approved_rsvp) {
|
||||
$.each(approved_rsvp.instrument_list, function(index, instrument) {
|
||||
var instrumentId = context.JK.getInstrumentId(instrument.id);
|
||||
var instrumentId;
|
||||
|
||||
if (instrument) {
|
||||
instrumentId = context.JK.getInstrumentId(instrument.id);
|
||||
}
|
||||
else {
|
||||
instrumentId = 'other';
|
||||
}
|
||||
var inst = context.JK.getInstrumentIcon24(instrumentId);
|
||||
instrumentLogoHtml += '<img title="' + instrumentId + '" hoveraction="instrument" data-instrument-id="' + instrumentId + '" src="' + inst + '" width="24" height="24" /> ';
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue