Няма описание

assessment.blade.php 25KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627
  1. @extends('layouts.master')
  2. @section('navigation')
  3. @if($role==1)
  4. @include('local.managers.admins._navigation')
  5. @elseif($role==2)
  6. @include('local.managers.sCoords._navigation')
  7. @elseif($role==3)
  8. @include('local.managers.pCoords._navigation')
  9. @else
  10. @include('local.professors._navigation')
  11. @endif
  12. @stop
  13. @section('main')
  14. <!-- View criterion info -->
  15. <div class="modal fade" id="modal-view-criterion">
  16. <div class="modal-dialog modal-lg">
  17. <div class="modal-content">
  18. <div class="modal-header">
  19. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  20. <h4 class="modal-title"></h4>
  21. </div>
  22. <div class="modal-body">
  23. <table class="table table-bordered">
  24. <thead id = "criteria-header">;
  25. @for($i=0; $i<$rubric->num_scales; $i++)
  26. <th>{{$rubric->titles[$i]}} ({{1+($i*($rubric->max_score/$rubric->num_scales))}} - {{(1+$i)*($rubric->max_score/$rubric->num_scales)}})</th>
  27. @endfor
  28. <th>Notes</th>
  29. </thead>
  30. <tbody>
  31. <tr>
  32. </tr>
  33. </tbody>
  34. </table>
  35. </div>
  36. </div><!-- /.modal-content -->
  37. </div><!-- /.modal-dialog -->
  38. </div><!-- /.modal -->
  39. <div class="row">
  40. <div class="col-md-12">
  41. <div class="well">
  42. <button id="button-language" class="btn btn-default btn-sm pull-right">Change language / Cambiar idioma</button>
  43. <div id="english-instructions">
  44. <h4>Instructions:</h4>
  45. <ol>
  46. <li>Fill in the scores per criterion for each student. You can see the student's final score in the last column.</li>
  47. <li>Click 'Publish Assessment' if you are done. Click 'Save as Draft' if you have not finished assessing the activity. You can come back later if you need to make any updates.
  48. <li>Unpublished results will be isolated. That is, they <strong>will not</strong> be aggregated to other results.</li>
  49. </ol>
  50. <h4>Notes:</h4>
  51. <ul>
  52. <li>If a particular criterion cannot be assessed for a student, select "N/A" (Not Applicable). This <strong>will not</strong> affect the student's score.</li>
  53. <li>If a particular criterion was assessed but the student did not complete the necessary work, you must select "0". This <strong>will</strong> affect the student's score.</li>
  54. <li>If a student did not complete any work for this activity, select "0" for all columns in that student's row.</li>
  55. <li>If a student dropped the class, select "N/A" (Not Applicable) for all columns in that student's row.</li>
  56. <li>Cells with "N/A" <strong>will not</strong> be used to determine whether a criterion is achieved. Only scores from 0 to {{$rubric->max_score}} will be considered for this purpose.</li>
  57. <li>For this activity, <strong>at least one score must be from 1-{{$rubric->max_score}}.</strong> Otherwise, the 'Publish Assessment' and 'Save as Draft' buttons will be <strong>disabled</strong>. If you want to delete previously saved scores, go back to the activity and click the "Delete Assessment" button.</li>
  58. <li>If some criterion has more weight on the student's final percentage, you can add it in the 'Weight' box above the criterion but be sure that the sum of criteria weights is equal to 100 (or aproximates it).
  59. </ul>
  60. </div>
  61. <div id="spanish-instructions">
  62. <h4>Instrucciones:</h4>
  63. <ol>
  64. <li>Seleccione la puntuación por criterio para cada estudiante. Puede ver la puntuación final en la última columna.</li>
  65. <li>Oprima 'Publish Assessment' una vez termine. Si no ha terminado, oprima 'Save as Draft' (guardar como borrador). Puede volver a esta página luego si desea hacer cambios.</li>
  66. <li>Los resultados guardados como borrador estarán asilados. Es decir, <strong>no</strong> se agregarán a los demás resultados.</li>
  67. </ol>
  68. <h4>Notas:</h4>
  69. <ul>
  70. <li>Si un criterio particular no puede ser evaluado, seleccione "N/A" (No Aplica). Esto <strong>no</strong> afectará la puntuación final del estudiante.</li>
  71. <li>Si un criterio particular fue evaluado, pero el estudiante no completó el trabajo necesario, debe seleccionar "0". Esto <strong>sí</strong> afectará la puntuación final del estudiante.</li>
  72. <li>Si un estudiante no completó el trabajo para esta actividad, seleccione "0" en todas las columnas de la fila de ese estudiante.</li>
  73. <li>Si un estudiante se dio de baja, seleccione "N/A" (No Aplica) en todas las columnas de la fila de ese estudiante.</li>
  74. <li>Las celdas con "N/A" <strong>no</strong> serán utilizadas para determinar si un criterio se alcanzó o no. Solamente las puntuaciones del 0 al {{$rubric->max_score}} serán consideradas.</li>
  75. <li>Para esta actividad, <strong>al menos una puntuación deber ser del 1 al {{$rubric->max_score}}.</strong> De otra manera, el botón para guardar <strong>se desactivará</strong>. Si quiere borrar los resultados del avalúo, vuelva a la actividad y oprima el botón que dice "Delete Assessment".</li>
  76. <li>Si algún criterio tiene más peso en el porcentaje final del estudiante, puedes añadirlo en la caja de "Weight" arriba del criterio deseado, pero debe asegurarse que la suma de los criterios sea igual a cien, o se aproxime.
  77. </ul>
  78. </div>
  79. </div>
  80. <input type='hidden' id='max' name= 'max' value='{{$rubric->max_score}}'>
  81. <input type ='hidden' id='num_of_scales' name ='num_of_scales' value ='{{$rubric->num_scales}}'>
  82. <p id="course">Course: {{{ $course->code }}} {{{ $course->number }}}</p>
  83. <p id="section">Section: {{{ $course->section }}}</p>
  84. {{ HTML::linkAction('ActivitiesController@show', 'Back to Activity', array($activity->id), array('class'=>'btn btn-default btn-sm pull-right')) }}
  85. <p id="activity" data-activity-id="{{{ $activity->id }}}">Activity: {{{ $activity->name}}} </p>
  86. <p>Passing Criteria: <span id="expected_percentage">{{{ $rubric->expected_percentage }}}% of students must obtain at least </span><span id="expected_points">{{{$rubric->expected_points}}}</span> points </p>
  87. <table data-rubric-id="{{{ $rubric->id }}}" id="assessment-table" class="table table-striped table-condensed table-bordered">
  88. <thead>
  89. <tr>
  90. <th>
  91. </th>
  92. @foreach ($rubric_criterion as $index => $criterion)
  93. <th data-criterion-id="{{{ $criterion->criterion_id }}}" ><div class="th-box">
  94. Weight<input class="form-control" id="weight-{{$index}}" name='weight[]' type="text" value="{{$criterion->weight}}" data-activity-criterion-id="{{$criterion->activity_criterion_id}}">
  95. </div></th>
  96. @endforeach
  97. </tr>
  98. <tr>
  99. <th>
  100. <div class="th-box">
  101. Student
  102. </div>
  103. </th>
  104. @foreach ($rubric_criterion as $criterion)
  105. <th class="criterion-field" data-activity-criterion-id = "{{$criterion->activity_criterion_id}}"data-rubric-criterion-id = "{{$criterion->rubric_criterion_id}}" data-criterion-id="{{{ $criterion->criterion_id }}}" ><div class="th-box">{{ $criterion->name}}</div></th>
  106. @endforeach
  107. <th>Student Percentage</th>
  108. <th>Student % per Weight</th>
  109. <th>Comments</th>
  110. </tr>
  111. </thead>
  112. <tbody>
  113. <!-- If the activity was assessed, load the assessment. Otherwise load empty sheet -->
  114. @if(sizeof($assessments)!=0)
  115. <!-- For each assessment -->
  116. @foreach ($students as $student)
  117. <tr class="student-row">
  118. <!-- Fetch student name -->
  119. <td class="student-field" data-student-id="{{ $student->id }}">
  120. {{{ $student->name }}}
  121. </td>
  122. <!-- For each criterion in the rubric, there's a score field -->
  123. @for ($i = 0; $i<sizeof($rubric_criterion); $i++)
  124. <td class="score-field">
  125. <select name="" id="" class="form-control" data-toggle="tooltip" data-placement="right" title="{{{ $student->name }}}
  126. {{{ $rubric_criterion[$i]->name }}}">
  127. <!-- Option from 0-8 -->
  128. @for ($j=0; $j<=$rubric->max_score; $j++)
  129. <!-- If the decoded scores with index as the assessment id and second index as criterion id equals the loop index, mark it as selected -->
  130. @if(array_key_exists($student->id, $scores_array) && isset($scores_array[$student->id][$rubric_criterion[$i]->activity_criterion_id]) && $j == $scores_array[$student->id][$rubric_criterion[$i]->activity_criterion_id])
  131. <option value="{{$j}}" selected="selected">{{ $j }}</option>
  132. @else
  133. <option value="{{$j}}">{{ $j }}</option>
  134. @endif
  135. @endfor
  136. <!-- N/A option -->
  137. @if( !array_key_exists($student->id, $scores_array)|| !isset($scores_array[$student->id][$rubric_criterion[$i]->activity_criterion_id]))
  138. <option value="N/A" selected="selected">N/A</option>
  139. @else
  140. <option value="N/A">N/A</option>
  141. @endif
  142. </select>
  143. </td>
  144. @endfor
  145. <td class="percentage"></td>
  146. <td class="percentage-per-weight"></td>
  147. <td class="">
  148. <textarea class="comments full-textarea" placeholder="Max. 255 characters" maxLength="255" >
  149. @if(array_key_exists($student->id, $scores_array))
  150. {{ $scores_array[$student->id]["comments"] }}
  151. @endif
  152. </textarea>
  153. </td>
  154. </tr>
  155. @endforeach
  156. @else
  157. @foreach ($students as $student)
  158. <tr class="student-row">
  159. <td class="student-field" data-student-id={{ $student->id }}>{{{ $student->name }}}</td>
  160. @for ($i = 0; $i<sizeof($rubric_criterion); $i++)
  161. <td class="score-field" data-weight = '1'>
  162. <select name="" id="" class="form-control" data-toggle="tooltip" data-placement="right" title="{{{ $student->name }}}">
  163. @for($j=0; $j<=$rubric->max_score; $j++)
  164. <option value ='{{$j}}'>{{$j}}</option>
  165. @endfor
  166. <option selected="selected" value="N/A">N/A</option>
  167. </select>
  168. </td>
  169. @endfor
  170. <td class="percentage"></td>
  171. <td class="percentage-per-weight"></td>
  172. <td class="comments"><textarea class="comments full-textarea" placeholder="Max. 255 characters" maxLength="255" ></textarea></td>
  173. </tr>
  174. @endforeach
  175. @endif
  176. </tbody>
  177. <tfoot>
  178. <tr>
  179. <td>
  180. <strong>Passed Criteria Percentage </strong>
  181. </td>
  182. @for ($i = 0; $i<sizeof($rubric_criterion); $i++)
  183. <td class="total"><strong><span class="total-value"></span><span class="percent-sign">%</span></strong>
  184. </td>
  185. @endfor
  186. <td></td>
  187. </tr>
  188. </tfoot>
  189. </table>
  190. <div class="text-center">
  191. <button id="button-submit-assessment" class="btn btn-primary btn-lg publish">Publish Assessment</button>
  192. <button id="button-diagnostic-assessment" class="btn btn-primary btn-lg diagnostic">Save as Diagnostic Test</button>
  193. <button id="button-draft-assessment" class="btn btn-primary btn-lg draft">Save as Draft</button>
  194. </div>
  195. </div>
  196. </div>
  197. <script>
  198. $('#button-submit-assessment, #button-draft-assessment, #button-diagnostic-assessment').on('click', function(e)
  199. {
  200. var draft = 0;
  201. var diagnostic=0
  202. if($(this).hasClass('draft'))
  203. draft = 1;
  204. if($(this).hasClass('diagnostic'))
  205. diagnostic = 1;
  206. var expected_points = parseInt($('#expected_points').text());
  207. var expected_percentage = parseInt($('#expected_percentage').text());
  208. //Prevent page refresh
  209. e.preventDefault();
  210. // Row in the database
  211. var activity_id = $('#activity').data('activity-id');
  212. var student_info = new Object();
  213. // Object to hold the score sum of each criterion
  214. var criteriaSumObject = new Object();
  215. // Object to hold % of students that passed each criterion
  216. var CriteriaAchievedPercentage = new Object();
  217. // Object to hold all student evaluations
  218. var studentAssessments = new Array();
  219. var weights = new Object();
  220. $('input[name="weight[]"]').each(function (index){
  221. activity_criterion_id = $(this).data('activity-criterion-id');
  222. weight = $(this).val();
  223. weights[activity_criterion_id] = weight;
  224. });
  225. // Iterate through all students
  226. $('#assessment-table tbody tr').each(function( index )
  227. {
  228. student_info[index] = new Object()
  229. student_info[index].studentId = $(this).find('.student-field').data('student-id');
  230. student_info[index].activity_crit_id = new Object();
  231. /* var ScoresObject = new Object(); // Scores column in database
  232. var CriterionObject = new Object(); // Objects inside ScoresObject
  233. var SingleStudentAssessment = new Object();
  234. SingleStudentAssessment.student_id = $(this).find('.student-field').data('student-id');
  235. */
  236. // For each criterion, store the score in array
  237. $(this).children('td.score-field').each(function(index2)
  238. {
  239. // Table cell with a score
  240. var scoreField = $(this);
  241. // Criterion being evaluated in current iteration
  242. activity_criterion_id = $('.criterion-field').eq(index2).data('activity-criterion-id');
  243. score = scoreField.children('select').find(':selected').val();
  244. if(score != "N/A")
  245. student_info[index].activity_crit_id[activity_criterion_id] = score;
  246. // Score in the cell
  247. //var score = scoreField.children('select').find(':selected').val();
  248. // Store the score in the scores Object
  249. //ScoresObject[criterion_id]=score;
  250. // Initialize the index for the sum object, if it's undefined
  251. //if(typeof(criteriaSumObject[criterion_id]) == 'undefined')
  252. //{
  253. // criteriaSumObject[criterion_id]=0;
  254. //}
  255. // Add to this criterion's total
  256. //criteriaSumObject[criterion_id]+=parseInt(score);
  257. });
  258. student_info[index].comments = $.trim($(this).find('.comments').val());
  259. //SingleStudentAssessment.scores = ScoresObject;
  260. //SingleStudentAssessment.percentage = $(this).find('.percentage').text();
  261. //SingleStudentAssessment.comments = $.trim($(this).find('.comments').val());
  262. // console.log('comment '+index+': '+SingleStudentAssessment.comments);
  263. // console.log('student object: '+JSON.stringify(SingleStudentAssessment));
  264. //var clone = jQuery.extend({}, SingleStudentAssessment);
  265. //studentAssessments.push(clone);
  266. });
  267. // console.log('students: '+JSON.stringify(studentAssessments));
  268. // console.log('total points per criteria: '+JSON.stringify(criteriaSumObject));
  269. // Iterate through all evaluated criteria, determining which were achieved
  270. // by comparing the completion percentage to the expected percentage
  271. /*var CriteriaAchievedResults = new Object();
  272. $('.total').each(function(index)
  273. {
  274. var id = $('.criterion-field').eq(index).data('criterion-id');
  275. CriteriaAchievedPercentage[id] = parseFloat($(this).find('span').text());
  276. //Set whether criterion was achieved (1) or not (0)
  277. if(CriteriaAchievedPercentage[id] >= expected_percentage)
  278. {
  279. CriteriaAchievedResults[id]=1;
  280. }
  281. else if (CriteriaAchievedPercentage[id] < expected_percentage)
  282. {
  283. CriteriaAchievedResults[id]=0;
  284. }
  285. else
  286. {
  287. CriteriaAchievedResults[id]=null;
  288. }
  289. });
  290. */
  291. // console.log('criteria percentages: '+JSON.stringify(CriteriaAchievedPercentage));
  292. // console.log('criteria achieved results: '+JSON.stringify(CriteriaAchievedResults));
  293. // Save activity to the database
  294. $.post
  295. (
  296. "{{ URL::action('ActivitiesController@saveAssessment') }}",
  297. {
  298. activity_id: activity_id,
  299. draft: draft,
  300. weights: JSON.stringify(weights),
  301. student_info: JSON.stringify(student_info),
  302. diagnostic:diagnostic
  303. },
  304. function(data)
  305. {
  306. location.replace(data);
  307. }
  308. );
  309. });
  310. </script>
  311. @stop
  312. @section('included-js')
  313. <!-- StickyTableHeaders js -->
  314. <script src="{{ asset('vendor/stickyTableHeaders/js/jquery.stickytableheaders.min.js') }}"></script>
  315. @stop
  316. @section ('javascript')
  317. // --------------------------------------------------------------------------
  318. // Page load
  319. // --------------------------------------------------------------------------
  320. // Enable fixed headers
  321. //$('#assessment-table').stickyTableHeaders();
  322. // Hide spanish instructions by default
  323. $('#spanish-instructions').toggle();
  324. $('.total').each(function(index)
  325. {
  326. percentagePerCriterion(index+1);
  327. });
  328. $('.student-row').each(function(index)
  329. {
  330. percentagePerStudent($(this));
  331. });
  332. // Highlight student names on hover
  333. $('.student-row td').on('mouseover', function()
  334. {
  335. $('.student-field').css(
  336. {
  337. 'color': 'black',
  338. });
  339. $(this).siblings('.student-field').css(
  340. {
  341. 'color': '#DD0026',
  342. });
  343. });
  344. toggleSaveButton();
  345. // --------------------------------------------------------------------------
  346. // Functions
  347. // --------------------------------------------------------------------------
  348. // Calculate average of students that passed a specific criterion
  349. function percentagePerCriterion(columnIndex)
  350. {
  351. // Object to hold the score sum of each criterion
  352. var sum = 0 ;
  353. var total = 0;
  354. columnIndex+=1;
  355. // Iterate through rows of column
  356. $('table tbody tr td:nth-child('+columnIndex+')').each(function( index )
  357. {
  358. var val = parseInt($(this).children('select').find(':selected').val());
  359. /* If N/A or 0 are chosen, they are ignored in the calculation. */
  360. if(val % 1 === 0)
  361. {
  362. if(val >= parseInt($('#expected_points').text()))
  363. {
  364. sum+=1;
  365. }
  366. total+=1;
  367. }
  368. });
  369. var percentage= (sum/total*100).toFixed(2);
  370. // If no criteria were assessed, set the percentage to 0.
  371. // This is to avoid show NaN%
  372. if(total==0)
  373. {
  374. percentage="N/A";
  375. $('.total:nth-child('+columnIndex+') span.total-value').html(percentage);
  376. $('.total:nth-child('+columnIndex+') span.percent-sign').hide();
  377. }
  378. else
  379. {
  380. $('.total:nth-child('+columnIndex+') span.total-value').html(percentage);
  381. $('.total:nth-child('+columnIndex+') span.percent-sign').show();
  382. }
  383. }
  384. // Calculate total for a specific student
  385. function percentagePerStudent(row)
  386. {
  387. // Object to hold the score student's total score
  388. var sum = 0 ;
  389. var total = 0;
  390. var percentage = 0;
  391. var max_score = parseInt($('#max').val());
  392. sum_of_weight = 0;
  393. per_of_weight =0;
  394. row.find('td.score-field').each(function(index)
  395. {
  396. var val = parseInt($(this).children('select').find(':selected').val());
  397. if(val % 1 === 0) //If number is integer
  398. {
  399. sum += val;
  400. total+=1;
  401. per_of_weight += val * parseInt($('#weight-'+index).val());
  402. sum_of_weight += parseInt($('#weight-'+index).val());
  403. }
  404. });
  405. percentage_per_weight = (100 *(per_of_weight/(max_score*sum_of_weight))).toFixed(2);
  406. percentage =((sum/(total*max_score))*100).toFixed(2);
  407. //If percentage is not a number, set it to 0.
  408. if(isNaN(percentage))
  409. {
  410. percentage="N/A";
  411. row.find('.percentage').html('<strong>'+percentage+'</strong>');
  412. }
  413. else
  414. {
  415. row.find('.percentage').html('<strong>'+percentage+'%</strong>');
  416. }
  417. if(isNaN(percentage_per_weight)){
  418. percentage_per_weight="N/A";
  419. row.find('.percentage-per-weight').html('<strong>'+percentage_per_weight+'</strong>');
  420. }
  421. else{
  422. row.find('.percentage-per-weight').html('<strong>'+percentage_per_weight+'%</strong>');
  423. }
  424. }
  425. function toggleSaveButton()
  426. {
  427. // Check at least one total criterion percentage is not zero
  428. var all_zeros_criteria = true;
  429. $('.total-value').each(function(index)
  430. {
  431. if(Number($(this).text())>0.00)
  432. all_zeros_criteria = false;
  433. });
  434. // Check at least one total student percentage is not zero
  435. var all_zeros_students = true;
  436. $('.percentage').each(function(index)
  437. {
  438. var value = $(this).text().replace('%', '');
  439. if(Number(value)>0.00)
  440. all_zeros_students = false;
  441. });
  442. if(all_zeros_criteria && all_zeros_students)
  443. {
  444. $('#button-submit-assessment').prop('disabled', true);
  445. $('#button-draft-assessment').prop('disabled', true);
  446. }
  447. else
  448. {
  449. $('#button-submit-assessment').prop('disabled', false);
  450. $('#button-draft-assessment').prop('disabled', false);
  451. }
  452. return;
  453. }
  454. // --------------------------------------------------------------------------
  455. // Events
  456. // --------------------------------------------------------------------------
  457. $('input[name="weight[]"]').on('change', function(e){
  458. $('.student-row').each(function(index)
  459. {
  460. percentagePerStudent($(this));
  461. });
  462. });
  463. // When any score changes, calculate percentages
  464. $('select').on('change', function(e)
  465. {
  466. percentagePerCriterion($(this).parent().index());
  467. percentagePerStudent($(this).closest('tr'));
  468. toggleSaveButton();
  469. });
  470. //LA LINEA DONDE VA, 410
  471. // Submit button is clicked
  472. // Language button is clicked
  473. $('#button-language').on('click', function(e)
  474. {
  475. $('#english-instructions').stop().toggle();
  476. $('#spanish-instructions').stop().toggle();
  477. });
  478. // Criterion name is clicked
  479. $('.criterion-field').on('click', function()
  480. {
  481. $.ajax({
  482. type: 'POST',
  483. url: "{{ URL::action('RubricsController@fetchRubricCriterion') }}",
  484. data: {
  485. criterion_id: $(this).data('criterion-id')
  486. },
  487. success: function(data)
  488. {
  489. data = JSON.parse(data);
  490. $('.modal-title').html(data.criteria.name);
  491. descriptions = '';
  492. $('.modal-body tbody tr').empty();
  493. for(i =0; i<{{$rubric->num_scales}}; i++){
  494. descriptions += '<td>'+data[i].description+'</td>'
  495. }
  496. $('.modal-body tbody tr').append
  497. (
  498. descriptions
  499. );
  500. if(data.criteria.notes!=null)
  501. $('.modal-body tbody tr').append('<td>'+data.criteria.notes+'</td>');
  502. else
  503. $('.modal-body tbody tr').append('<td></td>');
  504. },
  505. async:true
  506. });
  507. $('#modal-view-criterion').modal();
  508. });
  509. $(window).load(function(){
  510. $(".tableFloatingHeader").each(function(){
  511. $(this).remove();
  512. })
  513. });
  514. @stop