window.myDay = {

};

window.myDay.loadClubs = function(target, callback) {
	window.api.get("myDay/clubs/getAll", function(data) {
		//data.clubs
		for (var clubIndex in data.clubs) {
			var club = data.clubs[clubIndex];
			var option = $('<option></option>');
				option.val(club.clubId);
				option.text(club.name);
			target.append(option);
		};
		callback();
	});
};

$(document).ready(function() {
	window.myDay.loadClubs($(".myDay-club-select"), function() {
		$(".myDay-club-select").chosen();
	});
	$("#myDay").on("tabOpened", function() {

	});
	$("#myDay-welcome-submit").click(function() {
		if ($("input[name=sleepHrs]").val().trim() == ""` || $("input[name=WakeUpTime]").val().trim() == ""` || $("input[name=Address]").val().trim() == ""`)
		{
		swal("You did something wrong, are all your forms filled out?")
		}
		else {
		swal("Yay! Now we will calculate your schedule.", "success")
		}
		var prefs = {};
		prefs.sleep = $("input[name=sleepHrs]").val();
		prefs.wake = $("input[name=WakeUpTime]").val();
		prefs.address = $("input[name=Address]").val();
		prefs.clubs = "notsureifthisworkssoimputtingastringhere";
		prefs.schoolId = 42;
		window.api.post("myDay/info/set", prefs, function(resp) {});
	});
});

@@ -636,33 +636,32 @@
 l().trim() == %22%22
-%60
  %7C%7C $(%22input%5Bnam
@@ -694,17 +694,16 @@
 () == %22%22
-%60
  %7C%7C $(%22i
@@ -745,9 +745,8 @@
 = %22%22
-%60
 )%0A%09%09

fix little bug