summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSarven Capadisli <csarven@status.net>2010-03-16 20:53:49 +0100
committerSarven Capadisli <csarven@status.net>2010-03-16 20:53:49 +0100
commite8c7873b79b73d983b6222869598a6fdfaec674f (patch)
tree1beeae59e2bb9f8280aacca2436f384cbb926074
parent0be70e390b2f1ac12b9d8d7f2cbe66a5b93818ad (diff)
Added extra condition to focusing on notice form on page load. If the
window location contains a fragument identifier, it will skip focus and do what the UA does natively.
-rw-r--r--js/util.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/util.js b/js/util.js
index 3efda0d7b..2e0f6e57b 100644
--- a/js/util.js
+++ b/js/util.js
@@ -86,7 +86,7 @@ var SN = { // StatusNet
$('#'+form_id+' #'+SN.C.S.NoticeTextCount).text(jQuery.data(form[0], 'ElementData').MaxLength);
}
- if ($('body')[0].id != 'conversation') {
+ if ($('body')[0].id != 'conversation' && window.location.hash.length === 0) {
$('#'+form_id+' textarea').focus();
}
},