Merge pull request #55 from lanlab-org/EnockKhondowe-and-SamanthaRusike-bugfix-for-bug177

Submissions.php: fix bug# 177: Mark submission does not work
SIMPLICITY_Bug-189_Course_Delete_btn
Software Project Management 2020-12-22 18:24:30 +08:00 committed by GitHub
commit 9523d5c2e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -486,7 +486,7 @@ include 'Footer.php';
{ {
$('<form id="frm" method="get" action="Script.php">'+title+'('+marks+' marks) <input type="hidden" name="savemarks" value="true">\n\ $('<form id="submit-form" method="get" action="Script.php">'+title+'('+marks+' marks) <input type="hidden" name="savemarks" value="true">\n\
<input type="hidden" name="total" value="'+marks+'" > <input type="hidden" name="id" value="'+id+'" ><br> Marks <input type="text" name="marks">\n\ <input type="hidden" name="total" value="'+marks+'" > <input type="hidden" name="id" value="'+id+'" ><br> Marks <input type="text" name="marks">\n\
Comments <textarea name="feedback"></textarea> \n\ Comments <textarea name="feedback"></textarea> \n\
<input type="hidden" name="labid" value="<?php echo $course_id; ?>"> <input type="hidden" name="header" value="<?php echo $header; ?>"> </form>').dialog({ <input type="hidden" name="labid" value="<?php echo $course_id; ?>"> <input type="hidden" name="header" value="<?php echo $header; ?>"> </form>').dialog({
@ -494,7 +494,7 @@ include 'Footer.php';
title:'Mark Submission', title:'Mark Submission',
buttons: { buttons: {
'Submit Marking': function () { 'Submit Marking': function () {
$('#frm').submit(); $('#submit-form').submit();
$(this).dialog('close'); $(this).dialog('close');
}, },
@ -520,7 +520,7 @@ function updatev(id)
{ {
$('<form id="frm" method="get" action="Script.php"> <input type="hidden" name="updatevisibility" value="true">\n\ $('<form id="submit-form" method="get" action="Script.php"> <input type="hidden" name="updatevisibility" value="true">\n\
<input type="hidden" name="id" value="'+id+'" > <br>\n\ <input type="hidden" name="id" value="'+id+'" > <br>\n\
Update Visibility<br><select name="status"> <option> Public </option><option>Private</option> </select> \n\ Update Visibility<br><select name="status"> <option> Public </option><option>Private</option> </select> \n\
<input type="hidden" name="labid" value="<?php echo $id; ?>"> <input type="hidden" name="total" value="<?php echo $total; ?>" > <input type="hidden" name="header" value="<?php echo $header; ?>"> </form>').dialog({ <input type="hidden" name="labid" value="<?php echo $id; ?>"> <input type="hidden" name="total" value="<?php echo $total; ?>" > <input type="hidden" name="header" value="<?php echo $header; ?>"> </form>').dialog({
@ -528,7 +528,7 @@ Update Visibility<br><select name="status"> <option> Public </option><option>Pri
title:'Update Report Visibility', title:'Update Report Visibility',
buttons: { buttons: {
'Update': function () { 'Update': function () {
$('#frm').submit(); $('#submit-form').submit();
$(this).dialog('close'); $(this).dialog('close');
}, },