From: Tobias Brunner Date: Wed, 4 Nov 2015 13:30:18 +0000 (+0100) Subject: medsrv: Replace the JavaScript focus() calls with HTML5's autofocus X-Git-Tag: 5.3.4dr3~17^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3e48b244d864a27f8319967efef71180c1475c0c;p=thirdparty%2Fstrongswan.git medsrv: Replace the JavaScript focus() calls with HTML5's autofocus --- diff --git a/src/medsrv/templates/peer/add.cs b/src/medsrv/templates/peer/add.cs index 28a994f7fd..27fdf06852 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 76fb9dafca..942762b49f 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 f2ab1e0099..eac4912de0 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 8ba4e5c967..82442c5433 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 1d6eadbbcb..fbf5b8bd7b 100644 --- a/src/medsrv/templates/user/login.cs +++ b/src/medsrv/templates/user/login.cs @@ -6,7 +6,7 @@
- +