projects
/
bookreader.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
620049d
)
Remove slashes in search terms
author
Michael Ang
<mang@archive.org>
Wed, 4 Nov 2009 22:34:05 +0000
(22:34 +0000)
committer
Michael Ang
<mang@archive.org>
Wed, 4 Nov 2009 22:34:05 +0000
(22:34 +0000)
GnuBook/GnuBook.js
patch
|
blob
|
history
diff --git
a/GnuBook/GnuBook.js
b/GnuBook/GnuBook.js
index
5a2dc39
..
63700e4
100644
(file)
--- a/
GnuBook/GnuBook.js
+++ b/
GnuBook/GnuBook.js
@@
-2093,6
+2093,7
@@
GnuBook.prototype.getPageWidth2UP = function(index) {
// search()
//______________________________________________________________________________
GnuBook.prototype.search = function(term) {
+ term = term.replace(/\//g, ' '); // strip slashes
this.searchTerm = term;
$('#GnuBookSearchScript').remove();
var script = document.createElement("script");