mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-01 03:12:42 +01:00
stop enter reloading new page on search result request
This commit is contained in:
parent
1d5dbd45ca
commit
c370f779cc
1 changed files with 8 additions and 0 deletions
|
@ -29,6 +29,14 @@ $(document).ready(function () {
|
||||||
$("#progress.dialog").hide();
|
$("#progress.dialog").hide();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$("form").submit(function(){
|
||||||
|
var query = $('.search-results').data('query');
|
||||||
|
query.pattern = $("#search-query")[0].value;
|
||||||
|
query.offset = 0;
|
||||||
|
search();
|
||||||
|
return false;
|
||||||
|
});
|
||||||
|
|
||||||
$("#do-search").unbind('click').click(function () {
|
$("#do-search").unbind('click').click(function () {
|
||||||
var query = $('.search-results').data('query');
|
var query = $('.search-results').data('query');
|
||||||
query.pattern = $("#search-query")[0].value;
|
query.pattern = $("#search-query")[0].value;
|
||||||
|
|
Loading…
Reference in a new issue