Missing eventObject argument added to click handler.
authorDavid Humphrey (:humph) <david.humphrey@senecac.on.ca>
Tue, 08 Feb 2011 23:25:41 -0500
changeset 38 0af4a5e5e4ab3c3057957d59d3520322520852c8
parent 37 4d8b63c55e4ca8393e373d9ea6787546d0debbfc
child 39 6c2740178bcb40d1e54a61599b181c454461f717
push id29
push userdavid.humphrey@senecac.on.ca
push dateWed, 09 Feb 2011 04:26:15 +0000
Missing eventObject argument added to click handler.
server/static/search.js
--- a/server/static/search.js
+++ b/server/static/search.js
@@ -62,17 +62,17 @@ var results;
       while(postoffset + 1 < text.length && isChar(text[postoffset + 1])) {
         postoffset++;
       }
 
       return text.substring(preoffset, postoffset + 1) || '';
     };
   })();
 
-  $('body').bind('click', function() {
+  $('body').bind('click', function(e) {
     if (e.target.nodeName !== 'DIV') {
       return;
     }
 
     var s = window.getSelection();
     if (s.anchorNode && s.anchorNode.nodeValue) {
       var word = findWord(s.anchorNode.nodeValue, s.focusOffset);
       $("#keywords").val(function(index, value) {