Merge branch 'newui' of http://github.com/lancearthur/bookreader into lancemerge
authorMichael Ang <mang@archive.org>
Wed, 20 Oct 2010 23:57:04 +0000 (23:57 +0000)
committerMichael Ang <mang@archive.org>
Wed, 20 Oct 2010 23:57:04 +0000 (23:57 +0000)
1  2 
BookReader/BookReader.js

@@@ -2643,11 -2645,8 +2645,8 @@@ BookReader.prototype.getPageWidth2UP = 
  //______________________________________________________________________________
  BookReader.prototype.search = function(term) {
      //console.log('search called with term=' + term);
-     
-     $('#textSrch').blur(); //cause mobile safari to hide the keyboard 
-     
      var url = 'http://'+this.server.replace(/:.+/, ''); //remove the port and userdir
 -    url    += '/~edward/inside_jsonp.php?item_id='+this.bookId;
 +    url    += '/fulltext/inside.php?item_id='+this.bookId;
      url    += '&doc='+this.subPrefix;   //TODO: test with subitem
      url    += '&path='+this.bookPath.replace(new RegExp('/'+this.subPrefix+'$'), ''); //remove subPrefix from end of path
      url    += '&q='+escape(term);