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