Fixed and closed #481: TAB now focuses editor window.
This commit is contained in:
parent
5fee035fbe
commit
ce3179b525
4 changed files with 24 additions and 5 deletions
|
@ -16,5 +16,5 @@ using System.Reflection;
|
||||||
//
|
//
|
||||||
// You can specify all the values or you can default the Revision and Build Numbers
|
// You can specify all the values or you can default the Revision and Build Numbers
|
||||||
// by using the '*' as shown below:
|
// by using the '*' as shown below:
|
||||||
[assembly: AssemblyVersion("3.0.1.468")]
|
[assembly: AssemblyVersion("3.0.1.469")]
|
||||||
[assembly: AssemblyFileVersion("3.0.1.468")]
|
[assembly: AssemblyFileVersion("3.0.1.469")]
|
||||||
|
|
|
@ -191,6 +191,15 @@
|
||||||
if(__GetServerElementById("btnNewCategory")) {
|
if(__GetServerElementById("btnNewCategory")) {
|
||||||
__GetServerElementById("btnNewCategory").onclick = __SetSubmitted;
|
__GetServerElementById("btnNewCategory").onclick = __SetSubmitted;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$(function() {
|
||||||
|
$("#<%= txtTitle.ClientID %>").focus().keydown(function(event) {
|
||||||
|
if(event.keyCode == 9 /* TAB */) {
|
||||||
|
event.preventDefault();
|
||||||
|
__FocusEditorWindow();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
// -->
|
// -->
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
@ -114,6 +114,11 @@
|
||||||
if(elem) elem.style["height"] = cookieValue;
|
if(elem) elem.style["height"] = cookieValue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function __FocusEditorWindow() {
|
||||||
|
$("#<%= txtMarkup.ClientID %>").focus();
|
||||||
|
$("#iframe").focus();
|
||||||
|
}
|
||||||
// -->
|
// -->
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
@ -26,9 +26,14 @@
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
<!--
|
<!--
|
||||||
var subj = __GetServerElementById("txtSubject");
|
$(function() {
|
||||||
if(subj.value == "") subj.focus();
|
$("#<%= txtSubject.ClientID %>").focus().keydown(function(event) {
|
||||||
else __GetServerElementById("txtBody").focus();
|
if(event.keyCode == 9 /* TAB */) {
|
||||||
|
event.preventDefault();
|
||||||
|
__FocusEditorWindow();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
// -->
|
// -->
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue