Remove this code - it was not eventually needed for the unseen search
authorMichael M Slusarz <slusarz@curecanti.org>
Wed, 16 Dec 2009 07:24:33 +0000 (00:24 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Wed, 16 Dec 2009 19:45:59 +0000 (12:45 -0700)
imp/js/ViewPort.js

index 9ab894b..d8b2e2e 100644 (file)
@@ -262,13 +262,7 @@ var ViewPort = Class.create({
         }
 
         if (this.view) {
-            if (!background) {
-                // If this is the same view, send an ajax request with the
-                // given parameters.
-                if (view == this.view) {
-                    return this._fetchBuffer({ search: search });
-                }
-
+            if (!background && (view != this.view)) {
                 // Need to store current buffer to save current offset
                 buffer = this._getBuffer();
                 buffer.setMetaData({ offset: this.currentOffset() }, true);