1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-29 01:34:31 +01:00

don't wait for entire page to load before citing reply

This commit is contained in:
Savetheinternet 2011-07-30 21:28:52 +10:00
parent 1400b1707e
commit be80dd0ab8
2 changed files with 10 additions and 8 deletions

View File

@ -103,7 +103,10 @@ function rememberStuff() {
document.forms.post.name.value = localStorage.name;
if(localStorage.email)
document.forms.post.email.value = localStorage.email;
if (window.location.hash.indexOf('q') == 1)
citeReply(window.location.hash.substring(2));
if(sessionStorage.body) {
saved = JSON.parse(sessionStorage.body);
if(get_cookie('serv')) {
@ -180,9 +183,7 @@ function init()
document.forms.postcontrols.password.value = localStorage.password;
}
if (window.location.hash.indexOf('q') == 1)
citeReply(window.location.hash.substring(2));
else if (window.location.hash.substring(1))
if(window.location.hash.indexOf('q') != 1 && window.location.hash.substring(1))
highlightReply(window.location.hash.substring(1));
init_expanding();

View File

@ -103,7 +103,10 @@ function rememberStuff() {
document.forms.post.name.value = localStorage.name;
if(localStorage.email)
document.forms.post.email.value = localStorage.email;
if (window.location.hash.indexOf('q') == 1)
citeReply(window.location.hash.substring(2));
if(sessionStorage.body) {
saved = JSON.parse(sessionStorage.body);
if(get_cookie('{config[cookies][js]}')) {
@ -180,9 +183,7 @@ function init()
document.forms.postcontrols.password.value = localStorage.password;
}
if (window.location.hash.indexOf('q') == 1)
citeReply(window.location.hash.substring(2));
else if (window.location.hash.substring(1))
if(window.location.hash.indexOf('q') != 1 && window.location.hash.substring(1))
highlightReply(window.location.hash.substring(1));
{config[inline_expanding]?init_expanding();}