Skip to content

Commit

Permalink
web: use post to signin
Browse files Browse the repository at this point in the history
  • Loading branch information
borisfaure committed Feb 21, 2010
1 parent 9778249 commit cc024b6
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions static/backend.js
Expand Up @@ -293,9 +293,8 @@ function showLogin()
{
$("div.login").show("slow");
$("#signin").click(function() {
Send(["setUsername", $("#username").val()]);
Send(["setPassword", $("#password").val()]);
Send(["signin"]);
$.post("/signin", {u:$("#username").val(), p:$("#password").val()},
function(data, textStatus){});
});
}
function hideLogin()
Expand Down Expand Up @@ -457,14 +456,13 @@ function Listening() {
// init
$(document).ready(function()
{
/*
$(".mainWindow").dialog({
position:['left','top'],
height: '100%',
width: '400px',
stack: false
});
*/
showMainWindow();
showLogin();
/*
Listening();
Expand Down

0 comments on commit cc024b6

Please sign in to comment.