Skip to content

Commit

Permalink
Fixed instructor bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lduarte1991 committed Oct 21, 2015
1 parent 6360f13 commit 10cf334
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,16 @@
} else {
jQuery('#id_highlights_options').parent().parent().hide();
}
if (jQuery('#id_include_instructor_tab').is(':checked')){
jQuery('#id_default_tab').find('option').first().toggleClass('hidden');
if (!jQuery('#id_include_instructor_tab').is(':checked')){
jQuery('#id_default_tab').find('option').first().addClass('hidden');
}
jQuery('#id_include_instructor_tab').change(function(event){
jQuery('#id_default_tab').find('option').first().toggleClass('hidden');
if (jQuery('#id_include_instructor_tab').is(':checked')) {
jQuery('#id_default_tab').find('option').first().removeClass('hidden');
} else {
jQuery('#id_default_tab').find('option').first().addClass('hidden');
}

jQuery('#id_default_tab').selectpicker('refresh');
});
jQuery('#id_allow_highlights').change(function(event){
Expand Down

0 comments on commit 10cf334

Please sign in to comment.