Skip to content

Commit

Permalink
Set initial focus.
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.code.sf.net/p/subsonic/code/trunk@3849 104adb81-38d2-4886-885e-82898e39ce25
  • Loading branch information
sindremehus committed Jan 22, 2014
1 parent 5a330e0 commit 2fda74a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
6 changes: 4 additions & 2 deletions subsonic-backend/src/main/webapp/WEB-INF/jsp/backend/db.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@
<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.8.0r4/build/fonts/fonts.css">
<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.8.0r4/build/grid/grid.css">
<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.8.0r4/build/base/base.css">
</head><body>
</head>

<body onload="document.getElementById('query').focus()">

<h1>Database query</h1>

<form method="post" action="db.view">
<textarea rows="10" cols="80" name="query" style="margin-top:1em">${model.query}</textarea>
<textarea rows="10" cols="80" id="query" name="query" style="margin-top:1em">${model.query}</textarea>
<input type="submit" value="OK">
<input type="hidden" name="p" value="${model.p}">
</form>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.8.0r4/build/grid/grid.css">
<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.8.0r4/build/base/base.css">
</head>
<body>
<body onload="document.getElementById('email').focus()">

<h1>Resend Subsonic license key</h1>

Expand All @@ -31,7 +31,7 @@
<c:otherwise>
<form method="post" action="requestLicense.view">
<label>Email address
<input type="text" size="30" name="email">
<input type="text" size="30" id="email" name="email">
</label>
<input type="submit" value="Send license key">
</form>
Expand Down
4 changes: 2 additions & 2 deletions subsonic-main/src/main/webapp/WEB-INF/jsp/db.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

<html><head>
<%@ include file="head.jsp" %>
</head><body class="mainframe bgcolor1">
</head><body class="mainframe bgcolor1" onload="document.getElementById('query').focus()">

<h1>Database query</h1>

<form method="post" action="db.view">
<textarea rows="10" cols="80" name="query" style="margin-top:1em">${model.query}</textarea>
<textarea rows="10" cols="80" id="query" name="query" style="margin-top:1em">${model.query}</textarea>
<input type="submit" value="<fmt:message key="common.ok"/>">
</form>

Expand Down

0 comments on commit 2fda74a

Please sign in to comment.