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 = {
'HTML_CSS_JQ': 0,
'JAVASCRIPT': 1,
'VIDEO': 2,
'ZIPLINE': 3,
'BASEJUMP': 4,
'BONFIRE': 5
'HTML_CSS_JQ': '0',
'JAVASCRIPT': '1',
'VIDEO': '2',
'ZIPLINE': '3',
'BASEJUMP': '4',
'BONFIRE': '5'
};
$('#next-courseware-button').on('click', function() {
$('#next-courseware-button').unbind('click');