]> dev.renevier.net Git - syj.git/blobdiff - public/js/contact.js
update copyright headers
[syj.git] / public / js / contact.js
index e41734110f7ca7426ef60a72459c6ef2048c1147..d3528dc5a9149b45e4bff0065c2230a495671a42 100644 (file)
@@ -1,9 +1,9 @@
-/*  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. */
 
 document.observe("dom:loaded", function() {
     var form = $("contactform");
-    form.focus();
+    form.setfocus();
 
     form.observe('submit', function(evt) {
         var control, errorElements;
@@ -25,8 +25,7 @@ document.observe("dom:loaded", function() {
          * if there are errors, cancel submission
          */
         if (errorElements.length) {
-            errorElements[0].highlight('#F08080').focus();
-            errorElements[0].select();
+            errorElements[0].highlight('#F08080').activate();
             evt.stop();
         }
     });