Browse Source

Fix error message insertion for 0 search results.

static/js/index.js
        -The conditional in `queryServer()` that was meant to insert an
        error message for 0 search-results had an incorrect comparison.
        Fix.
tags/v1.0^2
Severyn Kozak 10 years ago
parent
commit
e550c0d3aa
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      static/js/index.js

+ 1
- 1
static/js/index.js View File

@@ -391,7 +391,7 @@ function queryServer(){
var resultDivs = []; var resultDivs = [];
if("error" in result) if("error" in result)
insertErrorMessage(result["error"]); insertErrorMessage(result["error"]);
else if(result["results"].length == 0 && searchResultsPage == 1)
else if(result["results"].length == 0 && searchResultsPage == 2)
insertErrorMessage("No search results."); insertErrorMessage("No search results.");
else else
for(var codelet = 0; codelet < result["results"].length; codelet++) for(var codelet = 0; codelet < result["results"].length; codelet++)


Loading…
Cancel
Save