text: var handleDateTimePicker=function(){$("#datetimepicker1").datetimepicker()},handleLabSelection=function(){var b=null,d=$(".multiple-select2").select2({placeholder:"Select Tests"});$("#lab").change(function(){b=null;$("#tests").empty();d.val(null).trigger("change");var f=$(this).find(":selected").val();$.ajax({type:"POST",url:"ajax/get_lab_tests_list.php",data:{lab:f},dataType:"json",cache:!1,success:function(a){if("undefined"==typeof a||null==a||null==a.length||0==a.length)console.log("No tests available");
  else{b=[];for(var e in a){var c={};c.id=a[e];c.text=a[e];b.push(c)}console.log(b);d.select2({data:b,placeholder:"Select Tests"})}},error:function(a,b,c){console.log(b+" "+c)}})})},handleSampleTestDescription=function(){$("#summernote").summernote({height:170,minHeight:null,maxHeight:null})},AcademicSampleInsertion=function(){return{init:function(){handleDateTimePicker();handleSampleTestDescription();handleLabSelection()}}}();