Put cursor in the text area when opening wiki/edit
This commit is contained in:
parent
07b7d9210a
commit
1f07ec78de
|
@ -14,7 +14,7 @@
|
|||
%>
|
||||
|
||||
<p>
|
||||
<textarea name="content" style="width: 450px; height: 500px"><%= h(@flash[:content] || @page.content) %></textarea>
|
||||
<textarea name="content" id="content" style="width: 450px; height: 500px"><%= h(@flash[:content] || @page.content) %></textarea>
|
||||
</p>
|
||||
<p>
|
||||
<input type="submit" value="Submit" accesskey="s"/> as
|
||||
|
@ -35,4 +35,5 @@ function cleanAuthorName() {
|
|||
document.getElementById('authorName').value = 'AnonymousCoward';
|
||||
}
|
||||
}
|
||||
document.forms["editForm"].elements["content"].focus();
|
||||
</script>
|
||||
|
|
|
@ -30,4 +30,5 @@ function cleanAuthorName() {
|
|||
document.getElementById('authorName').value = 'AnonymousCoward';
|
||||
}
|
||||
}
|
||||
document.forms["editForm"].elements["content"].focus();
|
||||
</script>
|
||||
|
|
Loading…
Reference in a new issue