diff options
author | John McLear <john@mclear.co.uk> | 2013-01-07 11:27:40 +0000 |
---|---|---|
committer | John McLear <john@mclear.co.uk> | 2013-01-07 11:27:40 +0000 |
commit | 8e366da82ed6a8c549b2e71dafe4a2ffab2fea4c (patch) | |
tree | ce4a5059ba785375e2a626289d5ef13254d13c85 /src/static | |
parent | c370f779cc8fdf4b1f80396dfcfed5e5164df709 (diff) | |
download | etherpad-lite-8e366da82ed6a8c549b2e71dafe4a2ffab2fea4c.zip |
use .val() instead of [0]
Diffstat (limited to 'src/static')
-rw-r--r-- | src/static/js/admin/plugins.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/static/js/admin/plugins.js b/src/static/js/admin/plugins.js index 0e492025..ddff767b 100644 --- a/src/static/js/admin/plugins.js +++ b/src/static/js/admin/plugins.js @@ -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(); }); |