Course.php: format code for JavaScript function accept()
							parent
							
								
									d5165af308
								
							
						
					
					
						commit
						4caffe4709
					
				
							
								
								
									
										23
									
								
								Course.php
								
								
								
								
							
							
						
						
									
										23
									
								
								Course.php
								
								
								
								
							| 
						 | 
					@ -615,13 +615,15 @@ include 'Header.php';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 function accept(id,val) {
 | 
					 function accept(id,val) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
     try
 | 
					     try {
 | 
				
			||||||
     {
 | 
					         $('<form id="frm" method="get" action="Script.php"> \
 | 
				
			||||||
         $('<form id="frm" method="get" action="Script.php"><input type="hidden" name="acceptinvite" value="true">\n\
 | 
					                <input type="hidden" name="acceptinvite" value="true"> \
 | 
				
			||||||
 <input type="hidden" name="groupid" value="'+id+'" > \n\  <input type="hidden" name="action" value="'+val+'" > \n\
 | 
					                <input type="hidden" name="groupid" value="'+id+'" > \
 | 
				
			||||||
\n\
 | 
					                <input type="hidden" name="action" value="'+val+'" > \
 | 
				
			||||||
 <input type="hidden" name="student_id" value="<?php echo $student_id; ?>" > \n\
 | 
					                <input type="hidden" name="student_id" value="<?php echo $student_id; ?>" > \
 | 
				
			||||||
<input type="hidden" name="url" value="<?php echo $url; ?>">  <input type="hidden" name="courseid" value="<?php echo $course_id; ?>">    </form>').dialog({
 | 
					                <input type="hidden" name="url" value="<?php echo $url; ?>"> \
 | 
				
			||||||
 | 
					                <input type="hidden" name="courseid" value="<?php echo $course_id; ?>"> \
 | 
				
			||||||
 | 
					            </form>').dialog({
 | 
				
			||||||
		modal: true,
 | 
							modal: true,
 | 
				
			||||||
		title:'Respond to group invitation',
 | 
							title:'Respond to group invitation',
 | 
				
			||||||
		close: function () {
 | 
							close: function () {
 | 
				
			||||||
| 
						 | 
					@ -631,17 +633,16 @@ include 'Header.php';
 | 
				
			||||||
		buttons: {
 | 
							buttons: {
 | 
				
			||||||
		    'Confirm': function () {
 | 
							    'Confirm': function () {
 | 
				
			||||||
			$('#frm').submit();
 | 
								$('#frm').submit();
 | 
				
			||||||
 | 
					 | 
				
			||||||
			$(this).dialog('close');
 | 
								$(this).dialog('close');
 | 
				
			||||||
		    },
 | 
							    },
 | 
				
			||||||
		    'Cancel': function () {
 | 
							    'Cancel': function () {
 | 
				
			||||||
 | 
					 | 
				
			||||||
			$(this).dialog('close');
 | 
								$(this).dialog('close');
 | 
				
			||||||
		    }
 | 
							    }
 | 
				
			||||||
 | 
					 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	    });
 | 
						    });
 | 
				
			||||||
     } catch(e){ alert(e); }
 | 
					     } catch(e) {
 | 
				
			||||||
 | 
						 alert(e);
 | 
				
			||||||
 | 
					     }
 | 
				
			||||||
 }
 | 
					 }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue