aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-10-01 20:10:09 -0700
committerfriendica <info@friendica.com>2013-10-01 20:10:09 -0700
commit7b6530fed5a35ecb3f8b699de9a0ec32a6cf7f82 (patch)
tree7360755b8262edbaec753b19407349dcdb8347cf /include
parentf3d351621d8f098524ccbfcad82863beafab5393 (diff)
downloadvolse-hubzilla-7b6530fed5a35ecb3f8b699de9a0ec32a6cf7f82.tar.gz
volse-hubzilla-7b6530fed5a35ecb3f8b699de9a0ec32a6cf7f82.tar.bz2
volse-hubzilla-7b6530fed5a35ecb3f8b699de9a0ec32a6cf7f82.zip
add the auto form submit even though it doesn't seem to work. Will debug it later.
Diffstat (limited to 'include')
-rwxr-xr-xinclude/text.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/text.php b/include/text.php
index 69c258488..8efa1e925 100755
--- a/include/text.php
+++ b/include/text.php
@@ -726,7 +726,7 @@ function search($s,$id='search-box',$url='/search',$save = false) {
$a = get_app();
$o = '<div id="' . $id . '">';
$o .= '<form action="' . $a->get_baseurl((stristr($url,'network')) ? true : false) . $url . '" method="get" >';
- $o .= '<input type="text" name="search" id="search-text" placeholder="' . t('Search') . '" value="' . $s .'" />';
+ $o .= '<input type="text" name="search" id="search-text" placeholder="' . t('Search') . '" value="' . $s .'" onclick="this.submit();" />';
$o .= '<input type="submit" name="submit" id="search-submit" value="' . t('Search') . '" />';
if($save)
$o .= '<input type="submit" name="save" id="search-save" value="' . t('Save') . '" />';