4 function isLoggedIn() {
9 url: '/user/logged_in',
11 success: function(response) {
13 alert(response.error);
16 //alert("LOGGED IN USER: "+response.user_id);
17 user_id = response.user_id;
20 error: function(response) {
21 alert("An error occurred. "+response);
41 function setUpLogin() {
43 jQuery('#working').dialog( {
52 jQuery('#login_window').dialog( {
65 jQuery('#login_window').dialog("close");