From 3e48b244d864a27f8319967efef71180c1475c0c Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Wed, 4 Nov 2015 14:30:18 +0100 Subject: medsrv: Replace the JavaScript focus() calls with HTML5's autofocus --- src/medsrv/templates/peer/add.cs | 2 +- src/medsrv/templates/peer/edit.cs | 2 +- src/medsrv/templates/static/script.js | 1 - src/medsrv/templates/user/add.cs | 2 +- src/medsrv/templates/user/login.cs | 2 +- 5 files changed, 4 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/medsrv/templates/peer/add.cs b/src/medsrv/templates/peer/add.cs index 28a994f7f..27fdf0685 100644 --- a/src/medsrv/templates/peer/add.cs +++ b/src/medsrv/templates/peer/add.cs @@ -6,7 +6,7 @@ - + diff --git a/src/medsrv/templates/peer/edit.cs b/src/medsrv/templates/peer/edit.cs index 76fb9dafc..942762b49 100644 --- a/src/medsrv/templates/peer/edit.cs +++ b/src/medsrv/templates/peer/edit.cs @@ -6,7 +6,7 @@
- + diff --git a/src/medsrv/templates/static/script.js b/src/medsrv/templates/static/script.js index f2ab1e009..eac4912de 100644 --- a/src/medsrv/templates/static/script.js +++ b/src/medsrv/templates/static/script.js @@ -1,5 +1,4 @@ window.addEvent('domready', function() { - $$('.focus').each(function(e){e.focus();}); $$('table.list tr:nth-child(2n) td').each(function(e){e.set('class', 'even');}); $$('table.list tr:nth-child(2n+1) td').each(function(e){e.set('class', 'odd');}); $$('table.list tr th').each(function(e){e.set('class', 'head');}); diff --git a/src/medsrv/templates/user/add.cs b/src/medsrv/templates/user/add.cs index 8ba4e5c96..82442c543 100644 --- a/src/medsrv/templates/user/add.cs +++ b/src/medsrv/templates/user/add.cs @@ -6,7 +6,7 @@
- + diff --git a/src/medsrv/templates/user/login.cs b/src/medsrv/templates/user/login.cs index 1d6eadbbc..fbf5b8bd7 100644 --- a/src/medsrv/templates/user/login.cs +++ b/src/medsrv/templates/user/login.cs @@ -6,7 +6,7 @@
- + -- cgit v1.2.3