X-Git-Url: https://dev.renevier.net/?a=blobdiff_plain;f=public%2Fjs%2Flogin.js;h=491bfad6d75455f01b5399d962880f5c8be601a4;hb=00c2579ade64a20ba2d82e98d3eea5f864864cdb;hp=ee9dd9ca6f0043d4fd9993f2661f38a2caa093f2;hpb=a64d41557a62ec6051d7fa08d1ba941e089aa5c2;p=syj.git diff --git a/public/js/login.js b/public/js/login.js index ee9dd9c..491bfad 100644 --- a/public/js/login.js +++ b/public/js/login.js @@ -1,9 +1,11 @@ -/* This file is part of Syj, Copyright (c) 2010 Arnaud Renevier, +/* This file is part of Syj, Copyright (c) 2010-2011 Arnaud Renevier, and is published under the AGPL license. */ +"use strict"; + document.observe("dom:loaded", function() { var form = $("loginform"); - form.focus(); + form.setfocus(); form.observe("submit", function(evt) { var loginput = $("login_user");