Commit a715e494 authored by Ruslan Kabalin's avatar Ruslan Kabalin Committed by Francois Marier
Browse files

Prevent default browser action on search submit at Find Friends page



(LP: 490836)
Signed-off-by: default avatarFrancois Marier <francois@catalyst.net.nz>
Signed-off-by: default avatarRuslan Kabalin <ruslan.kabalin@luns.net.uk>
parent ef49c9d7
......@@ -59,9 +59,10 @@ $searchform = pieform(array(
$js = <<< EOF
addLoadEvent(function () {
p = {$data['pagination_js']}
connect('search_submit', 'onclick', function () {
connect('search_submit', 'onclick', function (event) {
var params = {'query': $('search_query').value};
p.sendQuery(params);
event.stop();
});
});
EOF;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment