Use strings for challengeMap

fixes switch when numbers are strings
This commit is contained in:
Berkeley Martinez
2015-06-04 13:28:35 -07:00
parent 3654bb7e6f
commit cfb5f06cdf

View File

@ -171,12 +171,12 @@ $(document).ready(function() {
}); });
var challengeTypes = { var challengeTypes = {
'HTML_CSS_JQ': 0, 'HTML_CSS_JQ': '0',
'JAVASCRIPT': 1, 'JAVASCRIPT': '1',
'VIDEO': 2, 'VIDEO': '2',
'ZIPLINE': 3, 'ZIPLINE': '3',
'BASEJUMP': 4, 'BASEJUMP': '4',
'BONFIRE': 5 'BONFIRE': '5'
}; };
$('#next-courseware-button').on('click', function() { $('#next-courseware-button').on('click', function() {
$('#next-courseware-button').unbind('click'); $('#next-courseware-button').unbind('click');