Skip to content

Instantly share code, notes, and snippets.

@nguyenvinhlinh
Created June 28, 2016 08:13
Show Gist options
  • Save nguyenvinhlinh/97b95a8bfdd0ac122913a6d88c024260 to your computer and use it in GitHub Desktop.
Save nguyenvinhlinh/97b95a8bfdd0ac122913a6d88c024260 to your computer and use it in GitHub Desktop.
// /function toggleCampusSelect() {
// switch($('#js-role-select').val()) {
// case 'campus_manager':
// $('#js-campus-select').show();
// $("div.contract-full-time").hide();
// $("#user_contract_type").prop("disabled", true);
// $("#user_contract_type").val("full time");
// break;
// case 'teacher':
// $("#user_contract_type").prop("disabled", false);
// $('#js-campus-select').hide();
// switch($("#user_contract_type").val()){
// case "full time":
// $("div.contract-full-time").show();
// break;
// case "part time":
// $("div.contract-full-time").hide();
// break;
// }
// break;
// }
// }
// toggleCampusSelect();
// $(document).on('change', '', function(e){
// e.preventDefault();
// toggleCampusSelect();
// });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment