~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to ivle/webapp/tutorial/media/exercise_admin.js

  • Committer: William Grant
  • Date: 2009-12-15 01:49:45 UTC
  • Revision ID: me@williamgrant.id.au-20091215014945-mmqy3lmim5c4dp4j
Redo the exercise test part type (check/norm) selection, with radio buttons. Also add an exact match option, as yet unfunctional.

Show diffs side-by-side

added added

removed removed

Lines of Context:
355
355
function edit_test_part(partid, testid, suiteid)
356
356
{
357
357
    var part_type = $("#test_part_" + partid + "_part_type").val();
358
 
    var test_type = $("#test_part_" + partid + "_test_type").val();
 
358
    var test_type = $("input[name='test_part_" + partid + "_test_type']:checked").val();
359
359
    var data = $("#test_part_" + partid + "_data").val();
360
360
    
361
361
    var callback = function(xhr)
383
383
function add_test_part(testid, suiteid)
384
384
{
385
385
    var part_type = $("#test_part_new_part_type_" + testid).val();
386
 
    var test_type = $("#test_part_new_test_type_" + testid).val();
 
386
    var test_type = $("input[name='test_part_new_" + testid + "_test_type']:checked").val();
387
387
    var data = $("#test_part_new_data_" + testid).val();
388
388
 
389
389
    var savebutton = $("#new_test_part_save_" + testid);