projects
/
consearch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
121d1ac
)
only focus the input if it is empty
author
fpunktk
<git@fpunktk.de>
Thu, 28 May 2015 18:17:24 +0000
(20:17 +0200)
committer
fpunktk
<git@fpunktk.de>
Thu, 28 May 2015 18:17:24 +0000
(20:17 +0200)
index.php
patch
|
blob
|
history
diff --git
a/index.php
b/index.php
index e20e4a9e3f8b39044bcd0e6e4e3a635bec132bca..1f3311e3e98f49adf0e51e45bfc605f88a8af756 100644
(file)
--- a/
index.php
+++ b/
index.php
@@
-119,13
+119,13
@@
function display_searchbuttons() {
for ( kw in se ) {
document.getElementById("searchbuttons").innerHTML += '<button type="button" value="' + se[kw][0] + '" onclick=\'location.href="' + se[kw][1] + '" + document.getElementById("querystring").value\'><img src="data:image/png;base64,' + b64images[se[kw][2]] + '" alt=""> ' + se[kw][0] + "</button> \n";
}
for ( kw in se ) {
document.getElementById("searchbuttons").innerHTML += '<button type="button" value="' + se[kw][0] + '" onclick=\'location.href="' + se[kw][1] + '" + document.getElementById("querystring").value\'><img src="data:image/png;base64,' + b64images[se[kw][2]] + '" alt=""> ' + se[kw][0] + "</button> \n";
}
- document.getElementById("querystring").focus();
}
function parse_fragmentstring() {
var fragmentstring = document.URL.substr( document.URL.split("#")[0].length + 1 );
if ( fragmentstring == "" ) {
display_searchbuttons();
}
function parse_fragmentstring() {
var fragmentstring = document.URL.substr( document.URL.split("#")[0].length + 1 );
if ( fragmentstring == "" ) {
display_searchbuttons();
+ document.getElementById("querystring").focus();
} else {
fragmentarr = fragmentstring.replace("%20", "+").split("+");
if ( se[fragmentarr[0]] ) {
} else {
fragmentarr = fragmentstring.replace("%20", "+").split("+");
if ( se[fragmentarr[0]] ) {