trim leading whitespace/#/? in search closes #1195

v1.18.x
psychobunny 11 years ago
parent 6e64712fd3
commit 0627734fc0

@ -657,7 +657,7 @@ var socket,
$('#search-form').on('submit', function () {
var input = $(this).find('input');
ajaxify.go("search/" + input.val());
ajaxify.go("search/" + input.val().replace(/^[ ?#]*/, ''));
input.val('');
return false;
});

Loading…
Cancel
Save