mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-05-14 11:06:55 -04:00
Merge 8e366da82e
into 2a142a01e9
This commit is contained in:
commit
1c5d0a88b9
1 changed files with 9 additions and 1 deletions
|
@ -29,9 +29,17 @@ $(document).ready(function () {
|
||||||
$("#progress.dialog").hide();
|
$("#progress.dialog").hide();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$("form").submit(function(){
|
||||||
|
var query = $('.search-results').data('query');
|
||||||
|
query.pattern = $("#search-query").val();
|
||||||
|
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").val();
|
||||||
query.offset = 0;
|
query.offset = 0;
|
||||||
search();
|
search();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue