Skip to content

Commit

Permalink
Autofocus in search field and name i add
Browse files Browse the repository at this point in the history
  • Loading branch information
samster9312 committed Jan 9, 2013
1 parent a4bbf6a commit b24c058
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ Desktop.ini

# MySQL Config files
include/mysql_connect.php
include/login/config.php
include/login/config.php
/nbproject/private/
6 changes: 3 additions & 3 deletions add.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
<?php include_once("include/analytics.php") ?>

</head>
<body>
<body onLoad="document.forms.add.name.focus()">
<div id="wrapper">

<!-- Header -->
Expand All @@ -78,7 +78,7 @@
?>


<form class="globalForms noPadding" action="" method="post">
<form class="globalForms noPadding" action="" method="post" id="add">
<div class="textBoxInput">
<label class="keyWord boldText">Comment</label>
<div class="text">
Expand All @@ -92,7 +92,7 @@
Name
</td>
<td>
<input name="name" id="name" type="text" class="medium" value="<?php if(isset($_POST['submit'])) { echo $_POST['name']; } ?>" />
<input name="name" id="name" type="text" class="medium" value="<?php if(isset($_POST['submit'])) { echo $_POST['name']; } ?>" autofocus tabindex="0"/>
</td>
<td class="boldText">
Category
Expand Down
2 changes: 1 addition & 1 deletion include/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

<div class="searchContent">
<form class="search" action="search.php" method="get">
<input type="text" name="q" />
<input type="text" name="q" autofocus/>
</form>
</div>
</div>
Expand Down

0 comments on commit b24c058

Please sign in to comment.