asciimation/gallery.js
// and if so, sends its data using Ajax to the Webster server to be saved.
and if so, sends its data using Ajax to the Webster server to be saved.
and if so sends its data using Ajax to the Webster server to be saved .
function submitClick(event) {
		if (typeof(event.stopPropagation) === "function") {
			event.stopPropagation();
		}
		if (!uwnetid || !textarea.value) {
			return;
		}
		if (!confirm("This will submit an ASCII animation for '" + uwnetid + "' to our gallery for other students to see.  The ASCII art submitted will be whatever is currently showing in your main text area.  Continue?")) {
			return;
		}
		ajaxHelper(STUDENTS_LIST_LINK,
			function(ajax) {
				alert("Your ASCII art was submitted successfully!");
				fetchStudents();
			},
			true,
			{"name": uwnetid, "ascii": textarea.value}
		);
		return false;
	}
function submitClick ( event ) { if ( typeof ( event . stopPropagation ) === "function" ) { event . stopPropagation ( ) ; } if ( ! uwnetid || ! textarea . value ) { return ; } if ( ! confirm ( "This will submit an ASCII animation for '" + uwnetid + "' to our gallery for other students to see.  The ASCII art submitted will be whatever is currently showing in your main text area.  Continue?" ) ) { return ; } ajaxHelper ( STUDENTS_LIST_LINK , function ( ajax ) { alert ( "Your ASCII art was submitted successfully!" ) ; fetchStudents ( ) ; } , true , { "name" : uwnetid , "ascii" : textarea . value } ) ; return false ; }
and if so, sends its data using Ajax to the Webster server to be saved.
and if so sends its data using Ajax to the Webster server to be saved .
// abort if could not detect student's UW NetID or if textarea is empty // Ask the user whether to submit his/her ASCII animation to the server // submit this student's ASCII art using Ajax to the Webster server