Better JavaScript function name.
							parent
							
								
									7f870d8c7a
								
							
						
					
					
						commit
						6b8f97dc58
					
				
							
								
								
									
										16
									
								
								Courses.php
								
								
								
								
							
							
						
						
									
										16
									
								
								Courses.php
								
								
								
								
							| 
						 | 
				
			
			@ -31,15 +31,15 @@ if( $_SESSION['user_type']=="Lecturer" || $_SESSION['user_type']=="TA")
 | 
			
		|||
	<script>
 | 
			
		||||
			 
 | 
			
		||||
 | 
			
		||||
		 function extend_deadline(id) {
 | 
			
		||||
			 function extendDeadline(id) {
 | 
			
		||||
			     
 | 
			
		||||
		     var dropstudents=$("#dropstudents").html();
 | 
			
		||||
			     var dropstudents=$("#dropstudents").html();
 | 
			
		||||
			     
 | 
			
		||||
		     try
 | 
			
		||||
		     {
 | 
			
		||||
			     try
 | 
			
		||||
			     {
 | 
			
		||||
				 
 | 
			
		||||
 | 
			
		||||
			 $('<form id="frm" method="get" action="Script.php">\n\
 | 
			
		||||
				 $('<form id="frm" method="get" action="Script.php">\n\
 | 
			
		||||
    <input type="hidden" name="extenddeadline" value="true" >\n\
 | 
			
		||||
   <input type="hidden" name="id" value="'+id+'" > \n\
 | 
			
		||||
New Date/Time <br><input type="date" name="date" required=""> <input type="time" name="time" required=""> \n\
 | 
			
		||||
| 
						 | 
				
			
			@ -64,8 +64,8 @@ New Date/Time <br><input type="date" name="date" required=""> <input type="time"
 | 
			
		|||
             }
 | 
			
		||||
	 });
 | 
			
		||||
 | 
			
		||||
		     }catch(e){ alert(e); }
 | 
			
		||||
		 }
 | 
			
		||||
			     }catch(e){ alert(e); }
 | 
			
		||||
			 }
 | 
			
		||||
			     
 | 
			
		||||
        </script>
 | 
			
		||||
	
 | 
			
		||||
| 
						 | 
				
			
			@ -326,7 +326,7 @@ New Date/Time <br><input type="date" name="date" required=""> <input type="time"
 | 
			
		|||
   <br> <span style='font-size:8pt'>Posted : $posted  Deadline :  <b> $deadline </b>   ($marks Marks)                     "
 | 
			
		||||
               . "<br>"
 | 
			
		||||
 | 
			
		||||
               . "<span class='btn-default'>    $count_subs Submissions ( $count_marked Marked )       <a href='Courses.php?course=".$url."&act=edit&cid=".$id."'>Edit</a>   |  <a href='~\..\Submissions.php?id=$id&header=$header&total=$marks' onclick=''> View </a>        |           <a href='#'  onclick='extend_deadline($id)'> Extend Deadline </a>  </span>         <hr> Attachments : $full_link </span>"
 | 
			
		||||
               . "<span class='btn-default'>    $count_subs Submissions ( $count_marked Marked )       <a href='Courses.php?course=".$url."&act=edit&cid=".$id."'>Edit</a>   |  <a href='~\..\Submissions.php?id=$id&header=$header&total=$marks' onclick=''> View </a>        |           <a href='#'  onclick='extendDeadline($id)'> Extend Deadline </a>  </span>         <hr> Attachments : $full_link </span>"
 | 
			
		||||
               . "  </div>
 | 
			
		||||
               ";
 | 
			
		||||
            
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue