]> dev.renevier.net Git - syj.git/blobdiff - public/js/contact.js
js strict mode in development files
[syj.git] / public / js / contact.js
index 416d7457f4c9fb54b6c5e494410b7e853739b985..eb8cf921b25d5c103066958487bda4f2db442243 100644 (file)
@@ -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 = $("contactform");
-    form.focus();
+    form.setfocus();
 
     form.observe('submit', function(evt) {
         var control, errorElements;