mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-20 06:29:53 +01:00
use .val() instead of [0]
This commit is contained in:
parent
c370f779cc
commit
8e366da82e
1 changed files with 2 additions and 2 deletions
|
@ -31,7 +31,7 @@ $(document).ready(function () {
|
|||
|
||||
$("form").submit(function(){
|
||||
var query = $('.search-results').data('query');
|
||||
query.pattern = $("#search-query")[0].value;
|
||||
query.pattern = $("#search-query").val();
|
||||
query.offset = 0;
|
||||
search();
|
||||
return false;
|
||||
|
@ -39,7 +39,7 @@ $(document).ready(function () {
|
|||
|
||||
$("#do-search").unbind('click').click(function () {
|
||||
var query = $('.search-results').data('query');
|
||||
query.pattern = $("#search-query")[0].value;
|
||||
query.pattern = $("#search-query").val();
|
||||
query.offset = 0;
|
||||
search();
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue