garious/icontrib — Issue #20: rename check_user to user_state.json
Author: garious
Created: 2012-01-12 15:18:10+00:00
State: open

In nav/nav.js, instead of this:

$.ajax({
type: "GET",
url: "/check_user",
dataType: "json",
success: function(data) {
loginForm.innerHTML = data;
}
});

Add '/user_state.json' to the list of external dependencies for the module, and rename the resource in the server to return that same data.